MCPcopy Create free account
hub / github.com/cppla/ServerStatus / thread_create

Function thread_create

server/src/system.c:373–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373void *thread_create(void (*threadfunc)(void *), void *u)
374{
375#if defined(CONF_FAMILY_UNIX)
376 pthread_t id;
377 pthread_create(&id, NULL, (void *(*)(void*))threadfunc, u);
378 return (void*)id;
379#elif defined(CONF_FAMILY_WINDOWS)
380 return CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)threadfunc, u, 0, NULL);
381#else
382 #error not implemented
383#endif
384}
385
386void thread_wait(void *thread)
387{

Callers 2

OnDelClientMethod · 0.85
RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected