Prevent possible data race in access to PooledThread::_idle

This commit is contained in:
Adriaan Schmidt 2014-12-18 13:04:33 +01:00
parent 8859346898
commit 2fc0e524fa

View File

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