X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a3d0d1157ba147a11f0387e95f8c871baeea315..fc5a93cd09d1cb7e76b3aaea03d980f133801532:/src/msw/thread.cpp?ds=sidebyside diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index c3703a0456..1b26944ae7 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -441,7 +441,7 @@ bool wxThread::IsMain() } #ifdef Yield -#undef Yield + #undef Yield #endif void wxThread::Yield() @@ -664,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);