summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-11-14 06:23:04 +0100
committerbunnei <bunneidev@gmail.com>2020-11-29 10:31:51 +0100
commit9423347c1b7adb58d4881995a15c80d41faa5c74 (patch)
treed8db243f887e8f57b3c1a8c85806ab2b54d2ced1
parentcommon: fiber: Use boost::context instead of native fibers on Windows. (diff)
downloadyuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.tar
yuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.tar.gz
yuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.tar.bz2
yuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.tar.lz
yuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.tar.xz
yuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.tar.zst
yuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.zip
-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