| 916 | } |
| 917 | |
| 918 | void 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 | |
| 928 | bool MCore::Thread::IsAttached() |
| 929 | { |
nothing calls this directly
no test coverage detected