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

Function main

example_specific.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 return NULL;
49}
50int main()
51{
52 stRoutineArgs_t args[10];
53 for (int i = 0; i < 10; i++)
54 {
55 args[i].routine_id = i;
56 co_create(&args[i].co, NULL, RoutineFunc, (void*)&args[i]);
57 co_resume(args[i].co);
58 }
59 co_eventloop(co_get_epoll_ct(), NULL, NULL);
60 return 0;
61}

Callers

nothing calls this directly

Calls 4

co_createFunction · 0.85
co_resumeFunction · 0.85
co_eventloopFunction · 0.85
co_get_epoll_ctFunction · 0.85

Tested by

no test coverage detected