joinLowLevelThread

fnvoid joinLowLevelThread(ThreadID tid) nothrow @nogc

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.

Parameters

tidthe thread ID returned by createLowLevelThread.