aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/synchronization_object.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-03 15:32:45 -0800
committerGitHub <noreply@github.com>2020-12-03 15:32:45 -0800
commit69aaad9b9684570284efcdb5921e54d0f5983838 (patch)
tree364256228dfcdfc989a597aca2a6c753b173f93a /src/core/hle/kernel/synchronization_object.h
parent843ef8f2ec8b1645e7aa5eec7fcc8a76f0d3b666 (diff)
parent4b9e1b6586a8a4017b8e3e0fb52457d1e2568066 (diff)
Merge pull request #4996 from bunnei/use-4jits
Kernel: Refactor to use 4-instances of Dynarmic & various cleanups and improvements
Diffstat (limited to 'src/core/hle/kernel/synchronization_object.h')
-rw-r--r--src/core/hle/kernel/synchronization_object.h3
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