diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-02-26 07:33:59 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2015-03-06 12:27:10 +0000 |
commit | f33d6800fbdc42aa75477e31be0bba5a4a5a52c1 (patch) | |
tree | 031608831e7cc2b3ceb1decc45eab74fb1f06041 /vcl/source/app/svapp.cxx | |
parent | 8f9b0c869222e57f738bc25d51cc6364e3c6a65a (diff) |
Idle Timer: Invented Base Class
Change-Id: I03db46afcc0cb5e5d7a134b1bdd327abb542e63c
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r-- | vcl/source/app/svapp.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index f569bf90aece..33fbf0a55c1e 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -45,7 +45,7 @@ #include "vcl/cvtgrf.hxx" #include "vcl/unowrap.hxx" #include "vcl/timer.hxx" -#include "vcl/idle.hxx" +#include "vcl/scheduler.hxx" #include "vcl/unohelp.hxx" #include "vcl/lazydelete.hxx" @@ -343,11 +343,11 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents ) ImplSVData* pSVData = ImplGetSVData(); // run timers that have timed out - while ( pSVData->mbNotAllTimerCalled ) - Timer::ImplTimerCallbackProc(); + //while ( pSVData->mbNotAllTimerCalled ) + // Timer::ImplTimerCallbackProc(); //Process all idles - Idle::Idle::ProcessAllIdleHandlers(); + Scheduler::ProcessTaskScheduling(false); pSVData->maAppData.mnDispatchLevel++; // do not wait for events if application was already quit; in that @@ -367,11 +367,7 @@ inline void ImplYield( bool i_bWait, bool i_bAllEvents ) // e.g. on OS X; need to trigger timer checks manually if( pSVData->maAppData.mbNoYield ) { - do - { - Timer::ImplTimerCallbackProc( !i_bWait ); - } - while( pSVData->mbNotAllTimerCalled ); + Scheduler::ProcessTaskScheduling(true); } // call post yield listeners |