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

Function co_yield_env

co_routine.cpp:561–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559
560}
561void co_yield_env( stCoRoutineEnv_t *env )
562{
563
564 stCoRoutine_t *last = env->pCallStack[ env->iCallStackSize - 2 ];
565 stCoRoutine_t *curr = env->pCallStack[ env->iCallStackSize - 1 ];
566
567 env->iCallStackSize--;
568
569 co_swap( curr, last);
570}
571
572void co_yield_ct()
573{

Callers 4

CoRoutineFuncFunction · 0.85
co_yield_ctFunction · 0.85
co_yieldFunction · 0.85
co_poll_innerFunction · 0.85

Calls 1

co_swapFunction · 0.85

Tested by

no test coverage detected