]> git.saurik.com Git - wxWidgets.git/commitdiff
Try to get along without wxWakeUpMainThread (wxBase/GTK/Motif/X11 won't
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 24 Aug 2003 14:26:50 +0000 (14:26 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 24 Aug 2003 14:26:50 +0000 (14:26 +0000)
        compile with it).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/thread.cpp

index eefb6d5f15bcb05a8d1111c7bd4056aa75158013..f9fe2f123f5c769eb94f0d88140b42e64301e6fd 100644 (file)
@@ -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()