summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PerfQueryBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/PerfQueryBase.h')
-rw-r--r--Source/Core/VideoCommon/PerfQueryBase.h8
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;