diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-09-08 06:55:30 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-07-13 12:10:21 +0200 |
commit | d348035a60361a1b9ba9eb7b67013204a24a6633 (patch) | |
tree | 85e7e4ff2dd926ef9d2907b4f4900815bdbb96c5 /vcl/source/app/scheduler.cxx | |
parent | 1782893282a4543e946e6b2c8de863b10fab0c85 (diff) |
Drop special idle handling
Idles are just instant timers, which should most time have a low
priority, By dropping most special idle handling we'll just
schedule by priority.
This also reverts SalYieldResult back to a bool, which just
indicates if any event was processed.
Change-Id: Ia0b91b06dffb77af066f01838d8f9483523bf67d
Diffstat (limited to 'vcl/source/app/scheduler.cxx')
-rw-r--r-- | vcl/source/app/scheduler.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx index 9b954f4a1c3f..8c04d5916688 100644 --- a/vcl/source/app/scheduler.cxx +++ b/vcl/source/app/scheduler.cxx @@ -149,10 +149,10 @@ void Scheduler::ImplStartTimer(sal_uInt64 nMS, bool bForce) } } -void Scheduler::CallbackTaskScheduling( bool bIdle ) +void Scheduler::CallbackTaskScheduling() { // this function is for the saltimer callback - Scheduler::ProcessTaskScheduling( bIdle ); + Scheduler::ProcessTaskScheduling(); } static bool g_bDeterministicMode = false; @@ -193,7 +193,7 @@ inline void Scheduler::UpdateMinPeriod( ImplSchedulerData *pSchedulerData, } } -bool Scheduler::ProcessTaskScheduling( bool bIdle ) +bool Scheduler::ProcessTaskScheduling() { ImplSVData *pSVData = ImplGetSVData(); ImplSchedulerContext &rSchedCtx = pSVData->maSchedCtx; @@ -252,7 +252,7 @@ bool Scheduler::ProcessTaskScheduling( bool bIdle ) UpdateMinPeriod( pSchedulerData, nTime, nMinPeriod ); // skip ready tasks with lower priority than the most urgent (numerical lower is higher) - if ( pSchedulerData->mpTask->ReadyForSchedule( bIdle, nTime ) && + if ( pSchedulerData->mpTask->ReadyForSchedule( nTime ) && (!pMostUrgent || (pSchedulerData->mpTask->GetPriority() < pMostUrgent->mpTask->GetPriority())) ) { pMostUrgent = pSchedulerData; @@ -299,10 +299,7 @@ next_entry: pMostUrgent->mbInScheduler = false; if ( pMostUrgent->mpTask && !pMostUrgent->mbDelete ) - { pMostUrgent->mnUpdateTime = tools::Time::GetSystemTicks(); - UpdateMinPeriod( pMostUrgent, nTime, nMinPeriod ); - } } return !!pMostUrgent; |