diff options
| author | 2020-11-13 21:23:04 -0800 | |
|---|---|---|
| committer | 2020-11-29 01:31:51 -0800 | |
| commit | 9423347c1b7adb58d4881995a15c80d41faa5c74 (patch) | |
| tree | d8db243f887e8f57b3c1a8c85806ab2b54d2ced1 /src | |
| parent | common: fiber: Use boost::context instead of native fibers on Windows. (diff) | |
| download | yuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.tar.gz yuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.tar.xz yuzu-9423347c1b7adb58d4881995a15c80d41faa5c74.zip | |
hle: kernel: SynchronizationObject: Use atomic_bool for is_signaled.
Diffstat (limited to 'src')
| -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 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <atomic> | ||
| 7 | #include <memory> | 8 | #include <memory> |
| 8 | #include <vector> | 9 | #include <vector> |
| 9 | 10 | ||
| @@ -56,7 +57,7 @@ public: | |||
| 56 | void ClearWaitingThreads(); | 57 | void ClearWaitingThreads(); |
| 57 | 58 | ||
| 58 | protected: | 59 | protected: |
| 59 | bool is_signaled{}; // Tells if this sync object is signalled; | 60 | std::atomic_bool is_signaled{}; // Tells if this sync object is signaled |
| 60 | 61 | ||
| 61 | private: | 62 | private: |
| 62 | /// Threads waiting for this object to become available | 63 | /// Threads waiting for this object to become available |