Add wxEventLoopBase::DoRun().
Call it from public Run() after setting the loop as active and resetting m_shouldExit flag. No real changes, just cut down on the code duplication among the ports and make it easier to implement the upcoming changes. see #10258. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -24,10 +24,6 @@ public:
 | 
			
		||||
    wxCFEventLoop();
 | 
			
		||||
    virtual ~wxCFEventLoop();
 | 
			
		||||
 | 
			
		||||
    // enters a loop calling OnNextIteration(), Pending() and Dispatch() and
 | 
			
		||||
    // terminating when Exit() is called
 | 
			
		||||
    virtual int Run();
 | 
			
		||||
 | 
			
		||||
    // sets the "should exit" flag and wakes up the loop so that it terminates
 | 
			
		||||
    // soon
 | 
			
		||||
    virtual void Exit(int rc = 0);
 | 
			
		||||
@@ -63,6 +59,10 @@ public:
 | 
			
		||||
    void SetShouldWaitForEvent(bool should) { m_shouldWaitForEvent = should; }
 | 
			
		||||
#endif
 | 
			
		||||
protected:
 | 
			
		||||
    // enters a loop calling OnNextIteration(), Pending() and Dispatch() and
 | 
			
		||||
    // terminating when Exit() is called
 | 
			
		||||
    virtual int DoRun();
 | 
			
		||||
 | 
			
		||||
    void CommonModeObserverCallBack(CFRunLoopObserverRef observer, int activity);
 | 
			
		||||
    void DefaultModeObserverCallBack(CFRunLoopObserverRef observer, int activity);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user