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

Function thread_func

example_closure.cpp:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace std;
26
27static void *thread_func( void * arg )
28{
29 stCoClosure_t *p = (stCoClosure_t*) arg;
30 p->exec();
31 return 0;
32}
33static void batch_exec( vector<stCoClosure_t*> &v )
34{
35 vector<pthread_t> ths;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected