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_thread.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 'src/core/hle/kernel/k_thread.h')
-rw-r--r-- | src/core/hle/kernel/k_thread.h | 3 |
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{}; |