diff options
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()); |
