VERY experimental Nintendo Switch 2 emulator
C++
hle: kernel: SynchronizationObject: Use atomic_bool for is_signaled.
bunneie7c2a66ecd8a
diff --git a/src/core/hle/kernel/synchronization_object.h b/src/core/hle/kernel/synchronization_object.hindex f89b242040..7408ed51fa 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 signaledprivate:/// Threads waiting for this object to become available