Common/WorkQueueThread: Make IsRunning function public.

This commit is contained in:
Jordan Woyak 2025-11-12 01:38:57 -06:00
parent 8495e01668
commit e5714c350c

View File

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