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

Function main

example_thread.cpp:40–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 return 0;
39}
40int main(int argc,char *argv[])
41{
42 int cnt = atoi( argv[1] );
43
44 pthread_t tid[ cnt ];
45 for(int i=0;i<cnt;i++)
46 {
47 pthread_create( tid + i,NULL,routine_func,0);
48 }
49 for(;;)
50 {
51 sleep(1);
52 }
53
54 return 0;
55}
56

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected