Properly set background done state in no-statistics builds.

This commit is contained in:
Bartosz Taudul 2019-11-11 00:19:38 +01:00
parent b946c1d39e
commit f7ff0781b6

View File

@ -1777,6 +1777,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
{ {
m_threadBackground = std::thread( [this] { ReconstructMemAllocPlot(); m_backgroundDone.store( true, std::memory_order_relaxed ); } ); m_threadBackground = std::thread( [this] { ReconstructMemAllocPlot(); m_backgroundDone.store( true, std::memory_order_relaxed ); } );
} }
m_backgroundDone.store( true, std::memory_order_relaxed );
#endif #endif
} }
} }