MCPcopy Create free account
hub / github.com/Tencent/libco / co_get_curr_thread_env

Function co_get_curr_thread_env

co_routine.cpp:725–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723 SetEpoll( env,ev );
724}
725stCoRoutineEnv_t *co_get_curr_thread_env()
726{
727 return g_arrCoEnvPerThread[ GetPid() ];
728}
729
730void OnPollProcessEvent( stTimeoutItem_t * ap )
731{

Callers 9

co_createFunction · 0.85
co_yield_ctFunction · 0.85
co_swapFunction · 0.85
GetCurrThreadCoFunction · 0.85
co_poll_innerFunction · 0.85
co_get_epoll_ctFunction · 0.85
co_cond_signalFunction · 0.85
co_cond_broadcastFunction · 0.85
co_cond_timedwaitFunction · 0.85

Calls 1

GetPidFunction · 0.70

Tested by

no test coverage detected