mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-28 23:24:09 +02:00
fixed one-shot timer and maufunction of long start interval
This commit is contained in:
parent
755c31a4fd
commit
fe86370c34
@ -184,7 +184,7 @@ void Timer::run()
|
|||||||
}
|
}
|
||||||
while (sleep < 0);
|
while (sleep < 0);
|
||||||
|
|
||||||
if (_wakeUp.tryWait(sleep > _periodicInterval ? _periodicInterval : sleep))
|
if (_wakeUp.tryWait(sleep))
|
||||||
{
|
{
|
||||||
Poco::FastMutex::ScopedLock lock(_mutex);
|
Poco::FastMutex::ScopedLock lock(_mutex);
|
||||||
_nextInvocation.update();
|
_nextInvocation.update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user