MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / stop

Method stop

util/Thread.cpp:40–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40void Thread::stop(void)
41{
42 #ifdef _WIN32
43
44 if(handle)
45 {
46 WaitForSingleObject(handle, INFINITE); CloseHandle(handle);
47 }
48
49 #else
50
51 if(handle && !detached) pthread_join(handle, NULL);
52
53 #endif
54
55 handle = 0;
56}
57
58
59void Thread::detach(void)

Callers 8

~VGLTransReceiverMethod · 0.45
~ClientWinMethod · 0.45
shutdownFunction · 0.45
shutdownMethod · 0.45
~CompressorMethod · 0.45
shutdownMethod · 0.45
nativeStressFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 2

nativeStressFunction · 0.36
mainFunction · 0.36