mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Fifo: Replace busy loop with condition variable
This commit is contained in:
@ -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();});
|
||||
|
Reference in New Issue
Block a user