If the threads module hasn't been initialized yet then we can assume

the IsMain == true.  This allows wxASSERTs that happen before the
wxApp is created (as can easily happen in wxPython unfortunatly) to
behave normally instead of just calling wxTrap.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-05-18 19:59:18 +00:00
parent 42cfa1842f
commit 5b65f1364d
3 changed files with 4 additions and 4 deletions

View File

@@ -1197,7 +1197,7 @@ wxThread *wxThread::This()
bool wxThread::IsMain()
{
return GetCurrentId() == gs_idMainThread;
return GetCurrentId() == gs_idMainThread || gs_idMainThread == kNoThreadID;
}
#ifdef Yield