]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/unix/private/wakeuppipe.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / unix / private / wakeuppipe.h
index df90d52025b7c306289883bd694b5d1e489160af..a601478a9f187c3ab704cc1d83d5549b4d9bbae0 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     Helper class allowing to wake up the main thread.
 // Author:      Vadim Zeitlin
 // Created:     2013-06-09 (extracted from src/unix/evtloopunix.cpp)
-// RCS-ID:      $Id$
 // Copyright:   (c) 2013 Vadim Zeitlin <vadim@wxwidgets.org>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -65,6 +64,7 @@ private:
 
 // This class can be used from multiple threads, i.e. its WakeUp() can be
 // called concurrently.
+#if wxUSE_THREADS
 
 class wxWakeUpPipeMT : public wxWakeUpPipe
 {
@@ -92,4 +92,10 @@ private:
     wxCriticalSection m_pipeLock;
 };
 
+#else // !wxUSE_THREADS
+
+typedef wxWakeUpPipe wxWakeUpPipeMT;
+
+#endif // wxUSE_THREADS/!wxUSE_THREADS
+
 #endif // _WX_UNIX_PRIVATE_WAKEUPPIPE_H_