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

Function thread_wait

src/base/thread.cpp:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void thread_wait(void *thread)
102{
103#if defined(CONF_FAMILY_UNIX)
104 dbg_assert(pthread_join((pthread_t)thread, nullptr) == 0, "pthread_join failure");
105#elif defined(CONF_FAMILY_WINDOWS)
106 dbg_assert(WaitForSingleObject((HANDLE)thread, INFINITE) == WAIT_OBJECT_0, "WaitForSingleObject failure");
107 dbg_assert(CloseHandle(thread), "CloseHandle failure");
108#else
109#error not implemented
110#endif
111}
112
113void thread_yield()
114{

Callers 6

StopProcessorMethod · 0.85
ShutdownMethod · 0.85
~CHttpMethod · 0.85
~CDbConnectionPoolMethod · 0.85
TESTFunction · 0.85
aio_waitFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68