mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-27 21:25:21 -05:00
Common/WorkQueueThread: Make IsRunning function public.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user