From 700abd68e3214d7586a1ea89b33dce9c9934bacf Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sat, 25 Oct 2025 16:47:09 -0500 Subject: VideoCommon/AsyncRequests: Remove now unnecessary `SetEnable` function. Requests are now always enabled. Call `SetPassthrough` on initialization to not be racy. --- Source/Core/VideoCommon/AsyncRequests.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'Source/Core/VideoCommon/AsyncRequests.cpp') diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp index 0469d3ebb9..6671f93293 100644 --- a/Source/Core/VideoCommon/AsyncRequests.cpp +++ b/Source/Core/VideoCommon/AsyncRequests.cpp @@ -42,9 +42,6 @@ void AsyncRequests::QueueEvent(Event&& event) { m_empty.Clear(); - if (!m_enable) - return; - m_queue.push(std::move(event)); auto& system = Core::System::GetInstance(); @@ -57,20 +54,6 @@ void AsyncRequests::WaitForEmptyQueue() m_cond.wait(lock, [this] { return m_queue.empty(); }); } -void AsyncRequests::SetEnable(bool enable) -{ - std::unique_lock lock(m_mutex); - m_enable = enable; - - if (!enable) - { - // flush the queue on disabling - while (!m_queue.empty()) - m_queue.pop(); - m_cond.notify_one(); - } -} - void AsyncRequests::SetPassthrough(bool enable) { std::unique_lock lock(m_mutex); -- cgit v1.2.3