diff options
| author | bunnei <bunneidev@gmail.com> | 2022-10-26 09:51:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-26 09:51:44 -0700 |
| commit | 2dd6a2352d030230f08b045a21e529ea8f06cf97 (patch) | |
| tree | 912bff09ece8da0ade954056bf9ecb3e6ddee673 /src/core/hle/kernel/k_thread.h | |
| parent | 041eb5bf57f4db8609341c77bd5d38ddcd8b2d80 (diff) | |
| parent | 1a378a776902e1142b907110c6dd3a3a1647d328 (diff) | |
Merge pull request #9125 from liamwhite/dummy-scheduler
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; |
