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
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user