]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
IMHO these are the correct flags for borland
[wxWidgets.git] / src / msw / thread.cpp
index 1e642fd8e81fb851421275c360b51a441bee85e8..1b26944ae7a0dbf86f2e662f2156896bf4c85dfc 100644 (file)
@@ -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);