summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlat9nq <lat9nq@gmail.com>2022-04-02 00:29:08 +0200
committerlat9nq <lat9nq@gmail.com>2022-04-04 03:47:57 +0200
commit83b86d915ab27be68c8428761c8510817991b5ff (patch)
tree06f9f10fb2d926f163aa0343780cc57c72d20c99 /src
parentMerge pull request #8105 from merryhime/atomicload128 (diff)
downloadyuzu-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.h3
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