MCPcopy Create free account
hub / github.com/ddnet/ddnet / thread_detach

Function thread_detach

src/base/thread.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void thread_detach(void *thread)
125{
126#if defined(CONF_FAMILY_UNIX)
127 dbg_assert(pthread_detach((pthread_t)thread) == 0, "pthread_detach failure");
128#elif defined(CONF_FAMILY_WINDOWS)
129 dbg_assert(CloseHandle(thread), "CloseHandle failure");
130#else
131#error not implemented
132#endif
133}
134
135void thread_init_and_detach(void (*threadfunc)(void *), void *u, const char *name)
136{

Callers 3

TESTFunction · 0.85
aio_freeFunction · 0.85
thread_init_and_detachFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68