git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68302
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
public:
wxGUIEventLoop();
+ virtual void WakeUp();
+
protected:
virtual int DoDispatchTimeout(unsigned long timeout);
}
}
+void wxGUIEventLoop::WakeUp()
+{
+ OSStatus err = noErr;
+ wxMacCarbonEvent wakeupEvent;
+ wakeupEvent.Create( 'WXMC', 'WXMC', GetCurrentEventTime(),
+ kEventAttributeNone );
+ err = PostEventToQueue(GetMainEventQueue(), wakeupEvent,
+ kEventPriorityHigh );
+}
+
void wxGUIEventLoop::DoRun()
{
wxMacAutoreleasePool autoreleasepool;