add wxAppConsoleBase::DeletePendingEvents and wxEvtHandler::DeletePendingEvents.
Fix wxAppConsoleBase::Suspend/ResumeProcessingOfPendingEvents: locking the mutex does not prevent wxAppConsoleBase::ProcessPendingEvents from running if the mutex was locked from the main thread! git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2864,7 +2864,6 @@ public:
|
||||
// Event queuing and processing
|
||||
// ----------------------------
|
||||
|
||||
|
||||
// Process an event right now: this can only be called from the main
|
||||
// thread, use QueueEvent() for scheduling the events for
|
||||
// processing from other threads.
|
||||
@@ -2900,9 +2899,11 @@ public:
|
||||
void ProcessPendingEvents();
|
||||
// NOTE: uses ProcessEvent()
|
||||
|
||||
void DeletePendingEvents();
|
||||
|
||||
#if wxUSE_THREADS
|
||||
bool ProcessThreadEvent(const wxEvent& event);
|
||||
// NOTE: uses AddPendingEvent()
|
||||
// NOTE: uses AddPendingEvent(); call only from secondary threads
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user