diff options
| author | bunnei <bunneidev@gmail.com> | 2022-04-11 21:13:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-11 21:13:01 -0700 |
| commit | 203b812a83cf3e65eb852188cee482db2b6f2c22 (patch) | |
| tree | 5ce6c5bc77fe663428b9b66d1990c3bd64332581 /src/core/hle/kernel/k_thread.cpp | |
| parent | a79f92711e9d00a38895638d6b9d2a7fad6abc4d (diff) | |
| parent | b64f4230b3b2298fb17905b71623201b52953af2 (diff) | |
Merge pull request #8157 from lat9nq/kernel-races
kernel: Fix some data races
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/k_thread.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index 94c8faf689..d3bb1c871a 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp @@ -723,7 +723,7 @@ void KThread::UpdateState() { ASSERT(kernel.GlobalSchedulerContext().IsLocked()); // Set our suspend flags in state. - const auto old_state = thread_state; + const ThreadState old_state = thread_state; const auto new_state = static_cast<ThreadState>(this->GetSuspendFlags()) | (old_state & ThreadState::Mask); thread_state = new_state; @@ -738,7 +738,7 @@ void KThread::Continue() { ASSERT(kernel.GlobalSchedulerContext().IsLocked()); // Clear our suspend flags in state. - const auto old_state = thread_state; + const ThreadState old_state = thread_state; thread_state = old_state & ThreadState::Mask; // Note the state change in scheduler. |
