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; @@ -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());