MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / poThreadJoin

Function poThreadJoin

engine/Poseidon/Foundation/Threads/PoThread.cpp:27–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27bool poThreadJoin(ThreadId id, THREAD_PROC_RETURN* result)
28{
29 if (id == nullptr)
30 {
31 return false;
32 }
33 if (WaitForSingleObject(id, INFINITE) != WAIT_OBJECT_0)
34 {
35 return false;
36 }
37 if (!result)
38 {
39 return true;
40 }
41 return (GetExitCodeThread(id, result) != FALSE);
42}
43
44void poThreadId(ThreadId& id)
45{

Callers 2

closeMethod · 0.85
test_pothread.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected