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

Function CoRoutineFunc

co_routine.cpp:444–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442
443}
444static int CoRoutineFunc( stCoRoutine_t *co,void * )
445{
446 if( co->pfn )
447 {
448 co->pfn( co->arg );
449 }
450 co->cEnd = 1;
451
452 stCoRoutineEnv_t *env = co->env;
453
454 co_yield_env( env );
455
456 return 0;
457}
458
459
460

Callers

nothing calls this directly

Calls 1

co_yield_envFunction · 0.85

Tested by

no test coverage detected