summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_auto_object.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-12 06:13:01 +0200
committerGitHub <noreply@github.com>2022-04-12 06:13:01 +0200
commitfd5e1e80dac515ecb4a1cf9a12665b6645349370 (patch)
tree5ce6c5bc77fe663428b9b66d1990c3bd64332581 /src/core/hle/kernel/k_auto_object.h
parentMerge pull request #8196 from jbeich/freebsd (diff)
parentk_system_control: Fix data race (diff)
downloadyuzu-fd5e1e80dac515ecb4a1cf9a12665b6645349370.tar
yuzu-fd5e1e80dac515ecb4a1cf9a12665b6645349370.tar.gz
yuzu-fd5e1e80dac515ecb4a1cf9a12665b6645349370.tar.bz2
yuzu-fd5e1e80dac515ecb4a1cf9a12665b6645349370.tar.lz
yuzu-fd5e1e80dac515ecb4a1cf9a12665b6645349370.tar.xz
yuzu-fd5e1e80dac515ecb4a1cf9a12665b6645349370.tar.zst
yuzu-fd5e1e80dac515ecb4a1cf9a12665b6645349370.zip
Diffstat (limited to '')
-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) {