X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8c10faf1bdfc5b827c4361216cfd39e3bbf027a4..86fdd27b451ec92f4573f125fec73c44421ee744:/src/msw/thread.cpp?ds=sidebyside diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 1e642fd8e8..1b26944ae7 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,6 +664,13 @@ bool wxThread::IsAlive() const (p_internal->GetState() == STATE_PAUSED); } +bool wxThread::IsPaused() const +{ + wxCriticalSectionLocker lock((wxCriticalSection &)m_critsect); + + return (p_internal->GetState() == STATE_PAUSED); +} + bool wxThread::TestDestroy() { wxCriticalSectionLocker lock((wxCriticalSection &)m_critsect);