Wait for a thread created with createLowLevelThread to terminate.
Note: In a Windows DLL, if this function is called via DllMain with
argument DLL_PROCESS_DETACH, the thread is terminated forcefully
without proper cleanup as a deadlock would happen otherwise.
Wait for a thread created with createLowLevelThread to terminate.
Note: In a Windows DLL, if this function is called via DllMain with argument DLL_PROCESS_DETACH, the thread is terminated forcefully without proper cleanup as a deadlock would happen otherwise.