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:
commit
932184bfc1
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user