(hopefully) fixed race condition in installing idle handler (calling wxPostEvent from non-main thread)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -109,8 +109,7 @@ bool wxEventLoop::Pending() const
|
||||
{
|
||||
// We need to remove idle callbacks or gtk_events_pending will
|
||||
// never return false.
|
||||
gtk_idle_remove( wxTheApp->m_idleTag );
|
||||
wxTheApp->m_idleTag = 0;
|
||||
wxTheApp->RemoveIdleTag();
|
||||
g_isIdle = TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user