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

Method Exit

Source/Engine/Scripting/Runtime/Mono.cpp:918–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916}
917
918void MCore::Thread::Exit()
919{
920 if (!IsInMainThread() && mono_domain_get())
921 {
922 LOG(Info, "Thread 0x{0:x} exits the managed runtime", Platform::GetCurrentThreadID());
923 // TODO: use mono_thread_detach but modify mono to call mono_thread_info_detach there so the thread goes into STATE_DETACHED
924 mono_thread_exit();
925 }
926}
927
928bool MCore::Thread::IsAttached()
929{

Callers

nothing calls this directly

Calls 2

IsInMainThreadFunction · 0.85
GetCurrentThreadIDFunction · 0.50

Tested by

no test coverage detected