Explain reason for invalidating gs_tlsThisThread better
Just improve a comment, no real changes.
This commit is contained in:
@@ -1266,8 +1266,9 @@ void wxThreadModule::OnExit()
|
|||||||
wxLogLastError(wxT("TlsFree failed."));
|
wxLogLastError(wxT("TlsFree failed."));
|
||||||
}
|
}
|
||||||
|
|
||||||
// invalidate slot index to prevent wxThread from trying to reuse it if the
|
// invalidate slot index to make the errors more obvious if we try to use
|
||||||
// library is initialized again later
|
// it from now on, e.g. if any wxThreads are still running (which shouldn't
|
||||||
|
// be the case, of course, but might still happen)
|
||||||
gs_tlsThisThread = TLS_OUT_OF_INDEXES;
|
gs_tlsThisThread = TLS_OUT_OF_INDEXES;
|
||||||
|
|
||||||
if ( gs_critsectGui )
|
if ( gs_critsectGui )
|
||||||
|
Reference in New Issue
Block a user