diff options
| author | JMC47 <JMC4789@gmail.com> | 2026-03-27 20:42:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-27 20:42:06 -0400 |
| commit | 932769c4e21052257c6014267ab32c2abb4f4290 (patch) | |
| tree | 6a30fbb447b6a610e0f4fa115ff24a96b609af1f /Source/Core/Common/WorkQueueThread.h | |
| parent | 04fd45a960d4b91bd4d440f2959aa2ad38ff1e3f (diff) | |
| parent | efa0140791461609b113c45c027c05cea199f250 (diff) | |
Merge pull request #14110 from jordan-woyak/mgba-joybus-threading
HW/GBACore: Adjust joybus interthread communication to use WorkQueueThreadSP.
Diffstat (limited to 'Source/Core/Common/WorkQueueThread.h')
| -rw-r--r-- | Source/Core/Common/WorkQueueThread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/WorkQueueThread.h b/Source/Core/Common/WorkQueueThread.h index 8816ddda16..826ee778be 100644 --- a/Source/Core/Common/WorkQueueThread.h +++ b/Source/Core/Common/WorkQueueThread.h @@ -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()); |
