diff options
author | lat9nq <lat9nq@gmail.com> | 2022-04-02 00:29:08 +0200 |
---|---|---|
committer | lat9nq <lat9nq@gmail.com> | 2022-04-04 03:47:57 +0200 |
commit | 83b86d915ab27be68c8428761c8510817991b5ff (patch) | |
tree | 06f9f10fb2d926f163aa0343780cc57c72d20c99 /src | |
parent | Merge pull request #8105 from merryhime/atomicload128 (diff) | |
download | yuzu-83b86d915ab27be68c8428761c8510817991b5ff.tar yuzu-83b86d915ab27be68c8428761c8510817991b5ff.tar.gz yuzu-83b86d915ab27be68c8428761c8510817991b5ff.tar.bz2 yuzu-83b86d915ab27be68c8428761c8510817991b5ff.tar.lz yuzu-83b86d915ab27be68c8428761c8510817991b5ff.tar.xz yuzu-83b86d915ab27be68c8428761c8510817991b5ff.tar.zst yuzu-83b86d915ab27be68c8428761c8510817991b5ff.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/k_scheduler_lock.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_scheduler_lock.h b/src/core/hle/kernel/k_scheduler_lock.h index 93c47f1b1..016e0a818 100644 --- a/src/core/hle/kernel/k_scheduler_lock.h +++ b/src/core/hle/kernel/k_scheduler_lock.h @@ -4,6 +4,7 @@ #pragma once +#include <atomic> #include "common/assert.h" #include "core/hle/kernel/k_spin_lock.h" #include "core/hle/kernel/k_thread.h" @@ -75,7 +76,7 @@ private: KernelCore& kernel; KAlignedSpinLock spin_lock{}; s32 lock_count{}; - KThread* owner_thread{}; + std::atomic<KThread*> owner_thread{}; }; } // namespace Kernel |