diff options
author | bunnei <bunneidev@gmail.com> | 2022-04-12 06:13:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 06:13:01 +0200 |
commit | fd5e1e80dac515ecb4a1cf9a12665b6645349370 (patch) | |
tree | 5ce6c5bc77fe663428b9b66d1990c3bd64332581 /src/core/hle/kernel/k_auto_object.h | |
parent | Merge pull request #8196 from jbeich/freebsd (diff) | |
parent | k_system_control: Fix data race (diff) | |
download | yuzu-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.h | 2 |
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) { |