diff options
author | bunnei <bunneidev@gmail.com> | 2020-12-04 00:32:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 00:32:45 +0100 |
commit | 69aaad9b9684570284efcdb5921e54d0f5983838 (patch) | |
tree | 364256228dfcdfc989a597aca2a6c753b173f93a /src/core/hle/kernel/synchronization_object.h | |
parent | Merge pull request #5059 from lioncash/mouse (diff) | |
parent | kernel: scheduler: Minor cleanup to remove duplicated code. (diff) | |
download | yuzu-69aaad9b9684570284efcdb5921e54d0f5983838.tar yuzu-69aaad9b9684570284efcdb5921e54d0f5983838.tar.gz yuzu-69aaad9b9684570284efcdb5921e54d0f5983838.tar.bz2 yuzu-69aaad9b9684570284efcdb5921e54d0f5983838.tar.lz yuzu-69aaad9b9684570284efcdb5921e54d0f5983838.tar.xz yuzu-69aaad9b9684570284efcdb5921e54d0f5983838.tar.zst yuzu-69aaad9b9684570284efcdb5921e54d0f5983838.zip |
Diffstat (limited to 'src/core/hle/kernel/synchronization_object.h')
-rw-r--r-- | src/core/hle/kernel/synchronization_object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/synchronization_object.h b/src/core/hle/kernel/synchronization_object.h index f89b24204..7408ed51f 100644 --- a/src/core/hle/kernel/synchronization_object.h +++ b/src/core/hle/kernel/synchronization_object.h @@ -4,6 +4,7 @@ #pragma once +#include <atomic> #include <memory> #include <vector> @@ -56,7 +57,7 @@ public: void ClearWaitingThreads(); protected: - bool is_signaled{}; // Tells if this sync object is signalled; + std::atomic_bool is_signaled{}; // Tells if this sync object is signaled private: /// Threads waiting for this object to become available |