diff options
Diffstat (limited to 'src/Native/Runtime/startup.cpp')
-rw-r--r-- | src/Native/Runtime/startup.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Native/Runtime/startup.cpp b/src/Native/Runtime/startup.cpp index 8a7b0c56c..3a368191b 100644 --- a/src/Native/Runtime/startup.cpp +++ b/src/Native/Runtime/startup.cpp @@ -268,8 +268,13 @@ void __stdcall RuntimeThreadShutdown(void* thread) // that is made for the single thread that runs the final stages of orderly process // shutdown (i.e., the thread that delivers the DLL_PROCESS_DETACH notifications when the // process is being torn down via an ExitProcess call). +#if HAVE_THREAD_LOCAL + // If the current Unix platform doesn't support thread_local, we don't get the thread pointer + // as the parameter, we just get NULL, so we can check the thread validity only if the + // thread_local is supported UNREFERENCED_PARAMETER(thread); ASSERT((Thread*)thread == ThreadStore::GetCurrentThread()); +#endif if (!g_processShutdownHasStarted) { |