1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-20 15:40:32 +00:00

Merge branch 'fix_tsan_warning' into 'master'

Fix TSAN warning

See merge request OpenMW/openmw!1102
This commit is contained in:
psi29a 2021-08-08 12:29:44 +00:00
commit 932184bfc1

View File

@ -46,9 +46,12 @@ WorkQueue::~WorkQueue()
void WorkQueue::start(std::size_t workerThreads)
{
{
const std::lock_guard lock(mMutex);
mIsReleased = false;
}
while (mThreads.size() < workerThreads)
mThreads.emplace_back(std::make_unique<WorkThread>(*this));
mIsReleased = false;
}
void WorkQueue::stop()