mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
Merge pull request #646 from adriaan42/develop
Prevent possible data race in access to Timer::_periodicInerval
This commit is contained in:
commit
c14f8a8a69
@ -208,6 +208,7 @@ void Timer::run()
|
||||
{
|
||||
Poco::ErrorHandler::handle();
|
||||
}
|
||||
Poco::FastMutex::ScopedLock lock(_mutex);
|
||||
interval = _periodicInterval;
|
||||
}
|
||||
_nextInvocation += static_cast<Clock::ClockVal>(interval)*1000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user