summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AsyncRequests.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2016-08-10 16:15:52 +0200
committerGitHub <noreply@github.com>2016-08-10 16:15:52 +0200
commitcaa7ff7c2597ab42cbf2b21c4be90ae4a2345326 (patch)
tree5b404c3f0f13cb0cd716f9e311089e7989d8d8de /Source/Core/VideoCommon/AsyncRequests.cpp
parentc6a0e543a520204c1e56033ffa2511252b0dda4a (diff)
parentdca22e08eb96a401406ef7fa62c59eea1b837f7b (diff)
Merge pull request #4093 from leoetlino/flags-and-events
Use Common::Flag and Common::Event when possible
Diffstat (limited to 'Source/Core/VideoCommon/AsyncRequests.cpp')
-rw-r--r--Source/Core/VideoCommon/AsyncRequests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp
index 32f407373b..d88bb7aa50 100644
--- a/Source/Core/VideoCommon/AsyncRequests.cpp
+++ b/Source/Core/VideoCommon/AsyncRequests.cpp
@@ -19,7 +19,7 @@ AsyncRequests::AsyncRequests() : m_enable(false), m_passthrough(true)
void AsyncRequests::PullEventsInternal()
{
std::unique_lock<std::mutex> lock(m_mutex);
- m_empty.store(true);
+ m_empty.Set();
while (!m_queue.empty())
{
@@ -76,7 +76,7 @@ void AsyncRequests::PushEvent(const AsyncRequests::Event& event, bool blocking)
return;
}
- m_empty.store(false);
+ m_empty.Clear();
m_wake_me_up_again |= blocking;
if (!m_enable)