mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Remove all remaining volatile qualifiers
This commit is contained in:
parent
41befc21cd
commit
8a0f5ea04a
11 changed files with 229 additions and 178 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue