hnes / libaco

A blazing fast and lightweight C asymmetric coroutine library 💎 ⛅🚀⛅🌞
https://libaco.org
Apache License 2.0
3.49k stars 392 forks source link

set aco_gtls_co to main_co after creating main_co #29

Closed guangqianpeng closed 5 years ago

guangqianpeng commented 5 years ago

After creating main_co, set aco_gtls_co to main_co, so that aco_get_co() can return the proper result (rather than NULL).