MCPcopy Create free account
hub / github.com/cameron314/readerwriterqueue / join

Method join

tests/common/simplethread.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void SimpleThread::join()
34{
35 if (thread != nullptr && thread->handle != NULL) {
36 WaitForSingleObject(thread->handle, INFINITE);
37 CloseHandle(thread->handle);
38 thread->handle = NULL;
39 }
40}
41#else
42#include <thread>
43

Callers 8

mainFunction · 0.80
threadedMethod · 0.80
peekMethod · 0.80
popMethod · 0.80
size_approxMethod · 0.80
blockingMethod · 0.80
runBenchmarkFunction · 0.80

Calls

no outgoing calls

Tested by 7

mainFunction · 0.64
threadedMethod · 0.64
peekMethod · 0.64
popMethod · 0.64
size_approxMethod · 0.64
blockingMethod · 0.64