summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AsyncRequests.cpp
diff options
context:
space:
mode:
authordegasus <markus@selfnet.de>2015-03-05 17:12:24 +0100
committerdegasus <wickmarkus@web.de>2015-04-06 12:35:27 +0200
commit279c657cda7772a39f318b5df68fb279bb0400b4 (patch)
tree095afd5a9f7a949f350d9be5208611f1a820f3e9 /Source/Core/VideoCommon/AsyncRequests.cpp
parentea50dc240d0df56490aea86408dd0f621787950d (diff)
Fifo: Replace busy loop with condition variable
Diffstat (limited to 'Source/Core/VideoCommon/AsyncRequests.cpp')
-rw-r--r--Source/Core/VideoCommon/AsyncRequests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp
index a6cc5a4b9c..d2945a3dbc 100644
--- a/Source/Core/VideoCommon/AsyncRequests.cpp
+++ b/Source/Core/VideoCommon/AsyncRequests.cpp
@@ -1,4 +1,5 @@
#include "VideoCommon/AsyncRequests.h"
+#include "VideoCommon/Fifo.h"
#include "VideoCommon/RenderBase.h"
AsyncRequests AsyncRequests::s_singleton;
@@ -49,6 +50,7 @@ void AsyncRequests::PushEvent(const AsyncRequests::Event& event, bool blocking)
m_queue.push(event);
+ RunGpu();
if (blocking)
{
m_cond.wait(lock, [this]{return m_queue.empty();});