diff options
| author | Liam <byteslice@airmail.cc> | 2022-10-23 05:24:38 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2022-10-24 19:52:01 -0400 |
| commit | 1a378a776902e1142b907110c6dd3a3a1647d328 (patch) | |
| tree | 7b431310dfc5331f601076b3dd11d76d66f89f02 /src/core/hle/kernel/k_thread.h | |
| parent | 0860fffd78e5c0a833bd0285d651a4615d29c4f4 (diff) | |
kernel: refactor dummy thread wakeups
Diffstat (limited to 'src/core/hle/kernel/k_thread.h')
| -rw-r--r-- | src/core/hle/kernel/k_thread.h | 8 |
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; |
