From 8e5052faec2ffcf85cd65194877071faa4015ee8 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 24 Aug 2003 14:26:50 +0000 Subject: [PATCH] Try to get along without wxWakeUpMainThread (wxBase/GTK/Motif/X11 won't compile with it). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/os2/thread.cpp b/src/os2/thread.cpp index eefb6d5f15..f9fe2f123f 100644 --- a/src/os2/thread.cpp +++ b/src/os2/thread.cpp @@ -527,6 +527,8 @@ bool wxThreadInternal::Resume() // static functions // ---------------- +bool WXDLLEXPORT wxGuiOwnedByMainThread(); + wxThread *wxThread::This() { wxThread* pThread = m_pThread; @@ -939,11 +941,13 @@ void wxThreadModule::OnExit() // wake up the main thread if it's in ::GetMessage() void WXDLLEXPORT wxWakeUpMainThread() { +#if 0 if ( !::WinPostQueueMsg(wxTheApp->m_hMq, WM_NULL, 0, 0) ) { // should never happen wxLogLastError(wxT("WinPostMessage(WM_NULL)")); } +#endif } void WXDLLEXPORT wxMutexGuiEnter() -- 2.45.2