Kaydet (Commit) 18d50b61 authored tarafından jan Iversen's avatar jan Iversen

vcl/scheduler adjusted time check.

the sal_timer might be off with a fraction, so when comparing
it is -1 (due to use of int), which lead to adding 250 ticks.

Changed check to be
	if time < wanted time - 1
		add extra time

Change-Id: I788b3e3b491a513f44f7b495727d1a6842af6109
üst 29b34d17
......@@ -345,7 +345,8 @@ bool Scheduler::ProcessTaskScheduling()
return false;
sal_uInt64 nTime = tools::Time::GetSystemTicks();
if ( nTime < rSchedCtx.mnTimerStart + rSchedCtx.mnTimerPeriod )
// Allow for decimals, so subtract in the compare (needed at least on iOS)
if ( nTime < rSchedCtx.mnTimerStart + rSchedCtx.mnTimerPeriod -1)
{
SAL_WARN( "vcl.schedule", "we're too early - restart the timer!" );
UpdateSystemTimer( rSchedCtx,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment