(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:
Václav Slavík
2004-11-04 20:04:59 +00:00
parent 2449852113
commit fe593cc504
6 changed files with 68 additions and 14 deletions

View File

@@ -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;
}