Merge pull request #14110 from jordan-woyak/mgba-joybus-threading

HW/GBACore: Adjust joybus interthread communication to use WorkQueueThreadSP.
This commit is contained in:
JMC47 authored and GitHub committed 2026-03-27 20:42:06 -04:00
commit 932769c4e2
5 files changed
+90 -126

No files matched your search

+2 -2
View File
@@ -98,6 +98,8 @@ public:
m_items.WaitForEmpty();
}
bool IsRunning() { return m_thread.joinable(); }
private:
using CommandFunction = std::function<void()>;
@@ -142,8 +144,6 @@ private:
return std::lock_guard{m_mutex};
}
bool IsRunning() { return m_thread.joinable(); }
void ThreadLoop(const std::string& thread_name, const FunctionType& function)
{
Common::SetCurrentThreadName(thread_name.c_str());