Crashlog: Update thread/lock handling to match GameLoop changes

This commit is contained in:
Jonathan G Rennison
2021-04-06 03:53:01 +01:00
parent d452517c66
commit 63ddf7f587
10 changed files with 72 additions and 33 deletions

View File

@@ -46,6 +46,11 @@ int GetCurrentThreadName(char *str, const char *last);
*/
void SetSelfAsMainThread();
/**
* Set the current thread as the "game" thread
*/
void SetSelfAsGameThread();
/**
* Perform per-thread setup
*/
@@ -57,15 +62,20 @@ void PerThreadSetup();
void PerThreadSetupInit();
/**
* @return true if the current thread definitely the "main" thread. If in doubt returns false.
* @return true if the current thread is definitely the "main" thread. If in doubt returns false.
*/
bool IsMainThread();
/**
* @return true if the current thread definitely a "non-main" thread. If in doubt returns false.
* @return true if the current thread is definitely a "non-main" thread. If in doubt returns false.
*/
bool IsNonMainThread();
/**
* @return true if the current thread is definitely the "game" thread. If in doubt returns false.
*/
bool IsGameThread();
/**
* Start a new thread.