diff options
author | Liam <byteslice@airmail.cc> | 2022-10-23 11:24:38 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-10-25 01:52:01 +0200 |
commit | 1a378a776902e1142b907110c6dd3a3a1647d328 (patch) | |
tree | 7b431310dfc5331f601076b3dd11d76d66f89f02 /src/core/hle/kernel/k_thread.h | |
parent | Merge pull request #9095 from FernandoS27/meat-good-vegetable-bad (diff) | |
download | yuzu-1a378a776902e1142b907110c6dd3a3a1647d328.tar yuzu-1a378a776902e1142b907110c6dd3a3a1647d328.tar.gz yuzu-1a378a776902e1142b907110c6dd3a3a1647d328.tar.bz2 yuzu-1a378a776902e1142b907110c6dd3a3a1647d328.tar.lz yuzu-1a378a776902e1142b907110c6dd3a3a1647d328.tar.xz yuzu-1a378a776902e1142b907110c6dd3a3a1647d328.tar.zst yuzu-1a378a776902e1142b907110c6dd3a3a1647d328.zip |
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; |