mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Default-init atomics in TaskManager::Impl
std::atomic<bool> does not value-initialise the boolean. This caused windows tests to use way too much CPU and fail. Differential Revision: https://code.wildfiregames.com/D4089 This was SVN commit r25687.
This commit is contained in:
@@ -141,8 +141,8 @@ protected:
|
||||
// Back reference (keep this first).
|
||||
TaskManager& m_TaskManager;
|
||||
|
||||
std::atomic<bool> m_HasWork;
|
||||
std::atomic<bool> m_HasLowPriorityWork;
|
||||
std::atomic<bool> m_HasWork = false;
|
||||
std::atomic<bool> m_HasLowPriorityWork = false;
|
||||
std::mutex m_GlobalMutex;
|
||||
std::mutex m_GlobalLowPriorityMutex;
|
||||
std::deque<QueueItem> m_GlobalQueue;
|
||||
|
||||
Reference in New Issue
Block a user