]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/thread.cpp
Defined PBS_SMOOTH, PBS_VERTICAL in gauge95.cpp, if required
[wxWidgets.git] / src / msw / thread.cpp
index 67cab0e1b81a720c10073752144d25078287c33c..58d44efaf72b42d4fe09c3a842d9c086737eabe0 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,7 +664,14 @@ bool wxThread::IsAlive() const
            (p_internal->GetState() == STATE_PAUSED);
 }
 
-bool wxThread::TestDestroy() const
+bool wxThread::IsPaused() const
+{
+    wxCriticalSectionLocker lock((wxCriticalSection &)m_critsect);
+
+    return (p_internal->GetState() == STATE_PAUSED);
+}
+
+bool wxThread::TestDestroy()
 {
     wxCriticalSectionLocker lock((wxCriticalSection &)m_critsect);