doing WakeUp in osx_carbon differently for the main event as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -20,6 +20,8 @@ class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxCFEventLoop
|
|||||||
public:
|
public:
|
||||||
wxGUIEventLoop();
|
wxGUIEventLoop();
|
||||||
|
|
||||||
|
virtual void WakeUp();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual int DoDispatchTimeout(unsigned long timeout);
|
virtual int DoDispatchTimeout(unsigned long timeout);
|
||||||
|
|
||||||
|
@@ -83,6 +83,16 @@ int wxGUIEventLoop::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()
|
void wxGUIEventLoop::DoRun()
|
||||||
{
|
{
|
||||||
wxMacAutoreleasePool autoreleasepool;
|
wxMacAutoreleasePool autoreleasepool;
|
||||||
|
Reference in New Issue
Block a user