summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorlat9nq <lat9nq@gmail.com>2022-04-02 01:54:35 +0200
committerlat9nq <lat9nq@gmail.com>2022-04-04 03:47:58 +0200
commit983916e9193a65d2cbd55039cc1569c46a7081c1 (patch)
tree6b973ce8161a4896839718e0bb93d90831211e09 /src/core/hle
parentk_thread: Fix data race (diff)
downloadyuzu-983916e9193a65d2cbd55039cc1569c46a7081c1.tar
yuzu-983916e9193a65d2cbd55039cc1569c46a7081c1.tar.gz
yuzu-983916e9193a65d2cbd55039cc1569c46a7081c1.tar.bz2
yuzu-983916e9193a65d2cbd55039cc1569c46a7081c1.tar.lz
yuzu-983916e9193a65d2cbd55039cc1569c46a7081c1.tar.xz
yuzu-983916e9193a65d2cbd55039cc1569c46a7081c1.tar.zst
yuzu-983916e9193a65d2cbd55039cc1569c46a7081c1.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/k_auto_object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_auto_object.h b/src/core/hle/kernel/k_auto_object.h
index 05779f2d5..abdb8ae7c 100644
--- a/src/core/hle/kernel/k_auto_object.h
+++ b/src/core/hle/kernel/k_auto_object.h
@@ -163,7 +163,7 @@ public:
do {
ASSERT(cur_ref_count > 0);
} while (!m_ref_count.compare_exchange_weak(cur_ref_count, cur_ref_count - 1,
- std::memory_order_relaxed));
+ std::memory_order_acq_rel));
// If ref count hits zero, destroy the object.
if (cur_ref_count - 1 == 0) {