MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / join_thread

Function join_thread

extra/yassl/testsuite/testsuite.cpp:129–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128
129void join_thread(THREAD_TYPE thread)
130{
131#ifndef _POSIX_THREADS
132 int res = WaitForSingleObject(thread, INFINITE);
133 assert(res == WAIT_OBJECT_0);
134 res = CloseHandle(thread);
135 assert(res);
136#else
137 pthread_join(thread, 0);
138#endif
139}
140
141
142

Callers 1

mainFunction · 0.85

Calls 1

pthread_joinFunction · 0.85

Tested by

no test coverage detected