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

Method ThreadProc

Source/Engine/Platform/Unix/UnixThread.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void* UnixThread::ThreadProc(void* pThis)
30{
31 auto thread = (UnixThread*)pThis;
32#if PLATFORM_APPLE_FAMILY
33 // Apple doesn't support creating named thread so assign name here
34 {
35 const String& name = thread->GetName();
36 pthread_setname_np(StringAsANSI<>(name.Get(), name.Length()).Get());
37 }
38#endif
39 const int32 exitCode = thread->Run();
40 return (void*)(uintptr)exitCode;
41}
42
43UnixThread* UnixThread::Setup(UnixThread* thread, uint32 stackSize)
44{

Callers

nothing calls this directly

Calls 4

GetNameMethod · 0.45
GetMethod · 0.45
LengthMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected