X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf1852e121aab16762192f1fa08843c87d6f55ac..26ac40202f84fd07c9f24885b4d36b34b9468f4d:/src/msw/thread.cpp?ds=inline diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 67cab0e1b8..c3703a0456 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -440,6 +440,10 @@ bool wxThread::IsMain() return ::GetCurrentThreadId() == s_idMainThread; } +#ifdef Yield +#undef Yield +#endif + void wxThread::Yield() { // 0 argument to Sleep() is special @@ -660,7 +664,7 @@ bool wxThread::IsAlive() const (p_internal->GetState() == STATE_PAUSED); } -bool wxThread::TestDestroy() const +bool wxThread::TestDestroy() { wxCriticalSectionLocker lock((wxCriticalSection &)m_critsect);