Merge pull request #13611 from jordan-woyak/work-queue-thread-sp

Core and Vulkan: Change WorkQueueThread to WorkQueueThreadSP in a few places.
This commit is contained in:
JMC47
2025-05-01 21:32:16 -04:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@ -126,7 +126,7 @@ private:
u64 m_next_id = 0;
Common::WorkQueueThread<ReadRequest> m_dvd_thread;
Common::WorkQueueThreadSP<ReadRequest> m_dvd_thread;
Common::WaitableSPSCQueue<ReadResult> m_result_queue;
std::map<u64, ReadResult> m_result_map;

View File

@ -120,7 +120,7 @@ private:
IPCReply HandleICMPPingRequest(const IOCtlVRequest& request);
Common::SocketContext m_socket_context;
Common::WorkQueueThread<AsyncTask> m_work_queue;
Common::WorkQueueThreadSP<AsyncTask> m_work_queue;
std::mutex m_async_reply_lock;
std::queue<AsyncReply> m_async_replies;
};

View File

@ -110,8 +110,8 @@ private:
NWC24::NWC24Dl m_dl_list;
NWC24::Mail::WC24SendList m_send_list;
NWC24::Mail::WC24FriendList m_friend_list;
Common::WorkQueueThread<AsyncTask> m_work_queue;
Common::WorkQueueThread<std::function<void()>> m_scheduler_work_queue;
Common::WorkQueueThreadSP<AsyncTask> m_work_queue;
Common::WorkQueueThreadSP<std::function<void()>> m_scheduler_work_queue;
std::mutex m_async_reply_lock;
std::mutex m_scheduler_buffer_lock;
std::queue<AsyncReply> m_async_replies;

View File

@ -161,7 +161,7 @@ private:
u32 present_image_index;
u32 command_buffer_index;
};
Common::WorkQueueThread<PendingCommandBufferSubmit> m_submit_thread;
Common::WorkQueueThreadSP<PendingCommandBufferSubmit> m_submit_thread;
VkSemaphore m_present_semaphore = VK_NULL_HANDLE;
Common::Flag m_last_present_failed;
Common::Flag m_last_present_done;