adding empty base class implementation for OnNextIteration, call from OSXDoRun, allowing console event loop to override
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,6 +55,10 @@ protected:
|
|||||||
// terminating when Exit() is called
|
// terminating when Exit() is called
|
||||||
virtual int DoRun();
|
virtual int DoRun();
|
||||||
|
|
||||||
|
// may be overridden to perform some action at the start of each new event
|
||||||
|
// loop iteration
|
||||||
|
virtual void OnNextIteration() {}
|
||||||
|
|
||||||
virtual void DoYieldFor(long eventsToProcess);
|
virtual void DoYieldFor(long eventsToProcess);
|
||||||
|
|
||||||
void CommonModeObserverCallBack(CFRunLoopObserverRef observer, int activity);
|
void CommonModeObserverCallBack(CFRunLoopObserverRef observer, int activity);
|
||||||
|
@@ -272,6 +272,8 @@ void wxCFEventLoop::OSXDoRun()
|
|||||||
{
|
{
|
||||||
for ( ;; )
|
for ( ;; )
|
||||||
{
|
{
|
||||||
|
OnNextIteration();
|
||||||
|
|
||||||
// generate and process idle events for as long as we don't
|
// generate and process idle events for as long as we don't
|
||||||
// have anything else to do
|
// have anything else to do
|
||||||
DoProcessEvents();
|
DoProcessEvents();
|
||||||
|
Reference in New Issue
Block a user