diff --git a/lib/graphicsdev/Common.hpp b/lib/graphicsdev/Common.hpp index 5008664..73c2636 100644 --- a/lib/graphicsdev/Common.hpp +++ b/lib/graphicsdev/Common.hpp @@ -213,11 +213,11 @@ class PipelineCompileQueue { }; std::queue m_tasks; - size_t m_outstandingTasks = 0; + std::atomic_size_t m_outstandingTasks = 0; std::vector m_threads; std::mutex m_mt; std::condition_variable m_cv, m_backcv; - bool m_running = true; + std::atomic_bool m_running = true; void worker() { std::unique_lock lk(m_mt);