summaryrefslogtreecommitdiff
path: root/Source/Core/Common/WorkQueueThread.h
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-11-12 01:38:57 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2026-03-26 16:03:59 -0500
commit1ee8c5a8f180dc4351a750cd4407ca78ebfab38d (patch)
tree3101f05366e7846f428fc788b9a0e5ed6f06ee3e /Source/Core/Common/WorkQueueThread.h
parentd95445727bda4cc6ef20632491e624005da9a8bf (diff)
Common/WorkQueueThread: Make IsRunning function public.
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());