Merge pull request #645 from adriaan42/develop

Prevent possible data race in access to PooledThread::_idle
This commit is contained in:
Günter Obiltschnig 2014-12-18 13:26:34 +01:00
commit 79e9eab4d1

View File

@ -128,6 +128,7 @@ void PooledThread::start(Thread::Priority priority, Runnable& target, const std:
inline bool PooledThread::idle()
{
FastMutex::ScopedLock lock(_mutex);
return _idle;
}