mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
fixed one-shot timer and maufunction of long start interval
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user