Thread: Adjust checks for whether current thread is the game thread

This commit is contained in:
Jonathan G Rennison
2021-06-20 10:00:36 +01:00
parent 4577b547ea
commit 87948d8029
6 changed files with 23 additions and 1 deletions

View File

@@ -380,6 +380,15 @@ bool IsGameThread()
{
#if !defined(NO_THREADS)
return game_thread == pthread_self();
#else
return true;
#endif
}
bool IsNonGameThread()
{
#if !defined(NO_THREADS)
return game_thread != pthread_self();
#else
return false;
#endif