MCPcopy Create free account
hub / github.com/SoarGroup/Soar / ThreadStartFunction

Function ThreadStartFunction

Core/ConnectionSML/src/thread_Thread.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20using namespace soar_thread ;
21
22void ThreadStartFunction(void* pThreadObject)
23{
24 Thread* pThread = static_cast<Thread*>(pThreadObject);
25 pThread->Run() ;
26
27 // When Run() terminates this "ThreadStartFunction" will terminate
28 // which will cause the thread itself to terminate.
29 // At least, that works for Windows. If it fails on Linux we'll
30 // need an explicit "End" method.
31 pThread->SetStopped(true) ;
32}
33
34Thread::Thread()
35{

Callers

nothing calls this directly

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected