Merge pull request #12649 from mitaclaw/kill-is-running-in-current-thread

Core: Remove Unused IsRunningInCurrentThread Function
This commit is contained in:
Admiral H. Curtiss 2024-03-21 03:32:48 +01:00 committed by GitHub
commit 7f1e7314de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 8 deletions

View File

@ -210,11 +210,6 @@ bool IsRunningAndStarted()
return s_is_started && !s_is_stopping;
}
bool IsRunningInCurrentThread()
{
return IsRunning() && IsCPUThread();
}
bool IsCPUThread()
{
return tls_is_cpu_thread;

View File

@ -138,9 +138,8 @@ void UndeclareAsHostThread();
std::string StopMessage(bool main_thread, std::string_view message);
bool IsRunning();
bool IsRunningAndStarted(); // is running and the CPU loop has been entered
bool IsRunningInCurrentThread(); // this tells us whether we are running in the CPU thread.
bool IsCPUThread(); // this tells us whether we are the CPU thread.
bool IsRunningAndStarted(); // is running and the CPU loop has been entered
bool IsCPUThread(); // this tells us whether we are the CPU thread.
bool IsGPUThread();
bool IsHostThread();