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

Function RoutineFunc

example_specific.cpp:38–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36CO_ROUTINE_SPECIFIC(stRoutineSpecificData_t, __routine);
37
38void* RoutineFunc(void* args)
39{
40 co_enable_hook_sys();
41 stRoutineArgs_t* routine_args = (stRoutineArgs_t*)args;
42 __routine->idx = routine_args->routine_id;
43 while (true)
44 {
45 printf("%s:%d routine specific data idx %d\n", __func__, __LINE__, __routine->idx);
46 poll(NULL, 0, 1000);
47 }
48 return NULL;
49}
50int main()
51{
52 stRoutineArgs_t args[10];

Callers

nothing calls this directly

Calls 2

co_enable_hook_sysFunction · 0.85
pollFunction · 0.85

Tested by

no test coverage detected