]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
1. more (minor) wxCaret bug fixes
[wxWidgets.git] / src / msw / thread.cpp
index c3703a04564e5a50aebbd31bb01b3cec1526a569..1b26944ae7a0dbf86f2e662f2156896bf4c85dfc 100644 (file)
@@ -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);