include/vcl/scheduler.hxx | 1 - vcl/source/app/idle.cxx | 10 ---------- vcl/source/app/timer.cxx | 6 ------ 3 files changed, 17 deletions(-)
New commits: commit 5f521e0884ac7a09caec5a140308f4613c9fc284 Author: Jan Holesovsky <[email protected]> Date: Fri May 27 14:29:23 2016 +0200 Revert "Implement deterministic scheduler." This reverts commit 3baeec16f686fcd22677445e65aa5f5b7a1f45c9. diff --git a/include/vcl/scheduler.hxx b/include/vcl/scheduler.hxx index 6010763..95303ee 100644 --- a/include/vcl/scheduler.hxx +++ b/include/vcl/scheduler.hxx @@ -53,7 +53,6 @@ protected: // These should be constexpr static, when supported. static const sal_uInt64 ImmediateTimeoutMs = 1; static const sal_uInt64 MaximumTimeoutMs = 1000 * 60; // 1 minute - static const sal_uInt64 InfiniteTimeoutMs = 1000 * 60 * 60 * 24; // 1 day static void ImplStartTimer(sal_uInt64 nMS, bool bForce = false); diff --git a/vcl/source/app/idle.cxx b/vcl/source/app/idle.cxx index 62dfe1b..123f37a 100644 --- a/vcl/source/app/idle.cxx +++ b/vcl/source/app/idle.cxx @@ -67,16 +67,6 @@ sal_uInt64 Idle::UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 /* nTime */ case SchedulerPriority::REPAINT: nMinPeriod = ImmediateTimeoutMs; // don't wait. break; - case SchedulerPriority::LOW: - case SchedulerPriority::LOWER: - case SchedulerPriority::LOWEST: - // static bool bDeterministic = getenv("SAL_DETERMINISTIC_SCHEDULING"); - // if (bDeterministic) - // { - nMinPeriod = Scheduler::InfiniteTimeoutMs; - break; - // } - // fall-through intended default: // FIXME: tdf#92036 workaround, I should be 1 too - wait 5ms if (nMinPeriod > 5) // only shrink the min. period if nothing is quicker. diff --git a/vcl/source/app/timer.cxx b/vcl/source/app/timer.cxx index d5ace35..1766d7f 100644 --- a/vcl/source/app/timer.cxx +++ b/vcl/source/app/timer.cxx @@ -43,12 +43,6 @@ bool Timer::IsIdle() const sal_uInt64 Timer::UpdateMinPeriod( sal_uInt64 nMinPeriod, sal_uInt64 nTime ) const { - // static bool bDeterministic = getenv("SAL_DETERMINISTIC_SCHEDULING"); - // if (bDeterministic) - // { - return Scheduler::InfiniteTimeoutMs; - // } - sal_uInt64 nDeltaTime; //determine smallest time slot if( mpSchedulerData->mnUpdateTime == nTime ) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
