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

Function main

example_setenv.cpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75int main(int argc, char* argv[])
76{
77 co_set_env_list(CGI_ENV_HOOK_LIST, sizeof(CGI_ENV_HOOK_LIST) / sizeof(char*));
78 stRoutineArgs_t args[3];
79 for (int i = 0; i < 3; i++)
80 {
81 stCoRoutine_t* co = NULL;
82 args[i].iRoutineID = i;
83 co_create(&co, NULL, RoutineFunc, &args[i]);
84 co_resume(co);
85 }
86 co_eventloop(co_get_epoll_ct(), NULL, NULL);
87 return 0;
88}
89

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected