MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ThreadProc

Method ThreadProc

Source/Engine/Platform/Win32/Win32Thread.cpp:91–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91unsigned long Win32Thread::ThreadProc(void* pThis)
92{
93 auto thread = (Win32Thread*)pThis;
94#if PLATFORM_WINDOWS
95 __try
96#endif
97 {
98 const int32 exitCode = thread->Run();
99 return static_cast<unsigned long>(exitCode);
100 }
101#if PLATFORM_WINDOWS
102 __except (Platform::SehExceptionHandler(GetExceptionInformation()))
103 {
104 return -1;
105 }
106#endif
107}
108
109void Win32Thread::Join()
110{

Callers

nothing calls this directly

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected