return ::GetCurrentThreadId() == s_idMainThread;
}
+#ifdef Yield
+#undef Yield
+#endif
+
void wxThread::Yield()
{
// 0 argument to Sleep() is special
(p_internal->GetState() == STATE_PAUSED);
}
-bool wxThread::TestDestroy() const
+bool wxThread::TestDestroy()
{
wxCriticalSectionLocker lock((wxCriticalSection &)m_critsect);