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
|
// static functions
|
||||||
// ----------------
|
// ----------------
|
||||||
|
|
||||||
|
bool WXDLLEXPORT wxGuiOwnedByMainThread();
|
||||||
|
|
||||||
wxThread *wxThread::This()
|
wxThread *wxThread::This()
|
||||||
{
|
{
|
||||||
wxThread* pThread = m_pThread;
|
wxThread* pThread = m_pThread;
|
||||||
@@ -939,11 +941,13 @@ void wxThreadModule::OnExit()
|
|||||||
// wake up the main thread if it's in ::GetMessage()
|
// wake up the main thread if it's in ::GetMessage()
|
||||||
void WXDLLEXPORT wxWakeUpMainThread()
|
void WXDLLEXPORT wxWakeUpMainThread()
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
if ( !::WinPostQueueMsg(wxTheApp->m_hMq, WM_NULL, 0, 0) )
|
if ( !::WinPostQueueMsg(wxTheApp->m_hMq, WM_NULL, 0, 0) )
|
||||||
{
|
{
|
||||||
// should never happen
|
// should never happen
|
||||||
wxLogLastError(wxT("WinPostMessage(WM_NULL)"));
|
wxLogLastError(wxT("WinPostMessage(WM_NULL)"));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void WXDLLEXPORT wxMutexGuiEnter()
|
void WXDLLEXPORT wxMutexGuiEnter()
|
||||||
|
Reference in New Issue
Block a user