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

Method Start

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

Source from the content-addressed store, hash-verified

71}
72
73bool Win32Thread::Start(uint32 stackSize)
74{
75 // Spawn thread
76 DWORD id;
77 _thread = (void*)CreateThread(nullptr, stackSize, (LPTHREAD_START_ROUTINE)ThreadProc, this, STACK_SIZE_PARAM_IS_A_RESERVATION, &id);
78 if (_thread == nullptr)
79 return true;
80
81 // Initialize priority
82 SetPriorityInternal(_priority);
83
84#if WINDOWS_ENABLE_THREAD_NAMING
85 SetThreadName(id, _name.ToStringAnsi().Get());
86#endif
87
88 return false;
89}
90
91unsigned long Win32Thread::ThreadProc(void* pThis)
92{

Callers 1

CreateMethod · 0.45

Calls 4

SetPriorityInternalFunction · 0.85
SetThreadNameFunction · 0.70
GetMethod · 0.45
ToStringAnsiMethod · 0.45

Tested by

no test coverage detected