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

Method Attach

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

Source from the content-addressed store, hash-verified

906}
907
908void MCore::Thread::Attach()
909{
910 if (!IsInMainThread() && !mono_domain_get())
911 {
912 const auto domain = GetActiveDomain();
913 ASSERT(domain);
914 mono_thread_attach(domain->GetNative());
915 }
916}
917
918void MCore::Thread::Exit()
919{

Callers

nothing calls this directly

Calls 2

IsInMainThreadFunction · 0.85
GetNativeMethod · 0.80

Tested by

no test coverage detected