diff options
| author | JosJuice <josjuice@gmail.com> | 2021-05-13 19:30:30 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2021-05-15 09:52:04 +0200 |
| commit | 8a0f5ea04a276afcf3f76a038b0d3d88415ecad9 (patch) | |
| tree | 3a2a9ac84b155626d4e6a30c988d932ef592ed0d /Source/Core/VideoCommon/PerfQueryBase.h | |
| parent | 41befc21cd1124fc8e1e47aeeb8c02d0e110be9b (diff) | |
Remove all remaining volatile qualifiers
Diffstat (limited to 'Source/Core/VideoCommon/PerfQueryBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/PerfQueryBase.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/PerfQueryBase.h b/Source/Core/VideoCommon/PerfQueryBase.h index de99b215c9..9e29e238a6 100644 --- a/Source/Core/VideoCommon/PerfQueryBase.h +++ b/Source/Core/VideoCommon/PerfQueryBase.h @@ -4,7 +4,10 @@ #pragma once +#include <array> +#include <atomic> #include <memory> + #include "Common/CommonTypes.h" enum PerfQueryType @@ -61,9 +64,8 @@ public: virtual bool IsFlushed() const { return true; } protected: - // TODO: sloppy - volatile u32 m_query_count; - volatile u32 m_results[PQG_NUM_MEMBERS]; + std::atomic<u32> m_query_count; + std::array<std::atomic<u32>, PQG_NUM_MEMBERS> m_results; }; extern std::unique_ptr<PerfQueryBase> g_perf_query; |
