summaryrefslogtreecommitdiff
path: root/Source/Core/Common/WorkQueueThread.h
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2026-03-27 20:42:06 -0400
committerGitHub <noreply@github.com>2026-03-27 20:42:06 -0400
commit932769c4e21052257c6014267ab32c2abb4f4290 (patch)
tree6a30fbb447b6a610e0f4fa115ff24a96b609af1f /Source/Core/Common/WorkQueueThread.h
parent04fd45a960d4b91bd4d440f2959aa2ad38ff1e3f (diff)
parentefa0140791461609b113c45c027c05cea199f250 (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.h4
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());