summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_thread.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-10-26 18:51:44 +0200
committerGitHub <noreply@github.com>2022-10-26 18:51:44 +0200
commit2dd6a2352d030230f08b045a21e529ea8f06cf97 (patch)
tree912bff09ece8da0ade954056bf9ecb3e6ddee673 /src/core/hle/kernel/k_thread.h
parentMerge pull request #9131 from Morph1984/contiguous (diff)
parentkernel: refactor dummy thread wakeups (diff)
downloadyuzu-2dd6a2352d030230f08b045a21e529ea8f06cf97.tar
yuzu-2dd6a2352d030230f08b045a21e529ea8f06cf97.tar.gz
yuzu-2dd6a2352d030230f08b045a21e529ea8f06cf97.tar.bz2
yuzu-2dd6a2352d030230f08b045a21e529ea8f06cf97.tar.lz
yuzu-2dd6a2352d030230f08b045a21e529ea8f06cf97.tar.xz
yuzu-2dd6a2352d030230f08b045a21e529ea8f06cf97.tar.zst
yuzu-2dd6a2352d030230f08b045a21e529ea8f06cf97.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_thread.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h
index e2a27d603..30aa10c9a 100644
--- a/src/core/hle/kernel/k_thread.h
+++ b/src/core/hle/kernel/k_thread.h
@@ -643,8 +643,9 @@ public:
// therefore will not block on guest kernel synchronization primitives. These methods handle
// blocking as needed.
- void IfDummyThreadTryWait();
- void IfDummyThreadEndWait();
+ void RequestDummyThreadWait();
+ void DummyThreadBeginWait();
+ void DummyThreadEndWait();
[[nodiscard]] uintptr_t GetArgument() const {
return argument;
@@ -777,8 +778,7 @@ private:
bool is_single_core{};
ThreadType thread_type{};
StepState step_state{};
- std::mutex dummy_wait_lock;
- std::condition_variable dummy_wait_cv;
+ std::atomic<bool> dummy_thread_runnable{true};
// For debugging
std::vector<KSynchronizationObject*> wait_objects_for_debugging;