// 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
///////////////////////////////////////////////////////////////////////////////
// This class can be used from multiple threads, i.e. its WakeUp() can be
// called concurrently.
+#if wxUSE_THREADS
class wxWakeUpPipeMT : public wxWakeUpPipe
{
wxCriticalSection m_pipeLock;
};
+#else // !wxUSE_THREADS
+
+typedef wxWakeUpPipe wxWakeUpPipeMT;
+
+#endif // wxUSE_THREADS/!wxUSE_THREADS
+
#endif // _WX_UNIX_PRIVATE_WAKEUPPIPE_H_