1
0
Fork 0
forked from suyu/suyu

hle: kernel: SynchronizationObject: Use atomic_bool for is_signaled.

This commit is contained in:
bunnei 2020-11-13 21:23:04 -08:00
parent c042a89113
commit 9423347c1b

View file

@ -4,6 +4,7 @@
#pragma once #pragma once
#include <atomic>
#include <memory> #include <memory>
#include <vector> #include <vector>
@ -56,7 +57,7 @@ public:
void ClearWaitingThreads(); void ClearWaitingThreads();
protected: protected:
bool is_signaled{}; // Tells if this sync object is signalled; std::atomic_bool is_signaled{}; // Tells if this sync object is signaled
private: private:
/// Threads waiting for this object to become available /// Threads waiting for this object to become available