瀏覽代碼

hle: kernel: SynchronizationObject: Use atomic_bool for is_signaled.

bunnei 5 年之前
父節點
當前提交
9423347c1b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/core/hle/kernel/synchronization_object.h

+ 2 - 1
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