Thread: Adjust checks for whether current thread is the game thread
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user