mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
porting rev. 1914 from 1.4.4 branch (fixed SF# 3543047)
This commit is contained in:
parent
369218ef37
commit
2adfe178c0
@ -80,7 +80,7 @@ void Timer::start(const AbstractTimerCallback& method, ThreadPool& threadPool)
|
||||
void Timer::start(const AbstractTimerCallback& method, Thread::Priority priority, ThreadPool& threadPool)
|
||||
{
|
||||
Timestamp nextInvocation;
|
||||
nextInvocation += _startInterval*1000;
|
||||
nextInvocation += static_cast<Timestamp::TimeVal>(_startInterval)*1000;
|
||||
|
||||
poco_assert (!_pCallback);
|
||||
|
||||
@ -178,7 +178,7 @@ void Timer::run()
|
||||
sleep = 0;
|
||||
break;
|
||||
}
|
||||
_nextInvocation += interval*1000;
|
||||
_nextInvocation += static_cast<Timestamp::TimeVal>(_startInterval)*1000;
|
||||
++_skipped;
|
||||
}
|
||||
}
|
||||
@ -210,7 +210,7 @@ void Timer::run()
|
||||
}
|
||||
interval = _periodicInterval;
|
||||
}
|
||||
_nextInvocation += interval*1000;
|
||||
_nextInvocation += static_cast<Timestamp::TimeVal>(_startInterval)*1000;
|
||||
_skipped = 0;
|
||||
}
|
||||
while (interval > 0);
|
||||
|
Loading…
Reference in New Issue
Block a user