* Created a new wxObject method: wxObject::CopyObject(wxObject&)
and wxObject::Clone() uses it. * Added some CopyObject to events. * Reenable the idle loop in wxEvtHandler::ProcessThreadEvent(...) * Some correctness in wxSocket. Major bugs remaining: - it seems there is a mutex problem when it works too quickly - all threads aren't destroyed ... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -914,11 +914,6 @@ int wxApp::MainLoop()
|
||||
|
||||
|
||||
DoMessage();
|
||||
|
||||
// If they are pending events, we must process them.
|
||||
#if wxUSE_THREADS
|
||||
ProcessPendingEvents();
|
||||
#endif
|
||||
}
|
||||
|
||||
return s_currentMsg.wParam;
|
||||
@@ -1024,6 +1019,10 @@ void wxApp::OnIdle(wxIdleEvent& event)
|
||||
event.RequestMore(TRUE);
|
||||
}
|
||||
|
||||
// If they are pending events, we must process them.
|
||||
#if wxUSE_THREADS
|
||||
ProcessPendingEvents();
|
||||
#endif
|
||||
s_inOnIdle = FALSE;
|
||||
}
|
||||
|
||||
@@ -1179,6 +1178,10 @@ bool wxYield()
|
||||
if ( !wxTheApp->DoMessage() )
|
||||
break;
|
||||
}
|
||||
// If they are pending events, we must process them.
|
||||
#if wxUSE_THREADS
|
||||
ProcessPendingEvents();
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user