summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_thread.h
diff options
context:
space:
mode:
authorlat9nq <lat9nq@gmail.com>2022-04-02 00:57:40 +0200
committerlat9nq <lat9nq@gmail.com>2022-04-04 03:47:58 +0200
commit6bcbbb29e7822f5ebd6ac985066dfdd0890492f0 (patch)
treed903d0ab561c399600819b81e0b5823044ad7922 /src/core/hle/kernel/k_thread.h
parentk_process: Fix data race (diff)
downloadyuzu-6bcbbb29e7822f5ebd6ac985066dfdd0890492f0.tar
yuzu-6bcbbb29e7822f5ebd6ac985066dfdd0890492f0.tar.gz
yuzu-6bcbbb29e7822f5ebd6ac985066dfdd0890492f0.tar.bz2
yuzu-6bcbbb29e7822f5ebd6ac985066dfdd0890492f0.tar.lz
yuzu-6bcbbb29e7822f5ebd6ac985066dfdd0890492f0.tar.xz
yuzu-6bcbbb29e7822f5ebd6ac985066dfdd0890492f0.tar.zst
yuzu-6bcbbb29e7822f5ebd6ac985066dfdd0890492f0.zip
Diffstat (limited to 'src/core/hle/kernel/k_thread.h')
-rw-r--r--src/core/hle/kernel/k_thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h
index f46db7298..d0fd85130 100644
--- a/src/core/hle/kernel/k_thread.h
+++ b/src/core/hle/kernel/k_thread.h
@@ -5,6 +5,7 @@
#pragma once
#include <array>
+#include <atomic>
#include <span>
#include <string>
#include <utility>
@@ -751,7 +752,7 @@ private:
KAffinityMask original_physical_affinity_mask{};
s32 original_physical_ideal_core_id{};
s32 num_core_migration_disables{};
- ThreadState thread_state{};
+ std::atomic<ThreadState> thread_state{};
std::atomic<bool> termination_requested{};
bool wait_cancelled{};
bool cancellable{};