mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 08:22:37 +01:00
Merge pull request #645 from adriaan42/develop
Prevent possible data race in access to PooledThread::_idle
This commit is contained in:
commit
79e9eab4d1
@ -128,6 +128,7 @@ void PooledThread::start(Thread::Priority priority, Runnable& target, const std:
|
||||
|
||||
inline bool PooledThread::idle()
|
||||
{
|
||||
FastMutex::ScopedLock lock(_mutex);
|
||||
return _idle;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user