In fact, don't define wxWakeUpPipeMT class at all when not using threads.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74513
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// This class can be used from multiple threads, i.e. its WakeUp() can be
// called concurrently.
// This class can be used from multiple threads, i.e. its WakeUp() can be
// called concurrently.
class wxWakeUpPipeMT : public wxWakeUpPipe
{
class wxWakeUpPipeMT : public wxWakeUpPipe
{
wxCriticalSection m_pipeLock;
};
wxCriticalSection m_pipeLock;
};
+#else // !wxUSE_THREADS
+
+typedef wxWakeUpPipe wxWakeUpPipeMT;
+
+#endif // wxUSE_THREADS/!wxUSE_THREADS
+
#endif // _WX_UNIX_PRIVATE_WAKEUPPIPE_H_
#endif // _WX_UNIX_PRIVATE_WAKEUPPIPE_H_