Crashlog: Update thread/lock handling to match GameLoop changes
This commit is contained in:
14
src/thread.h
14
src/thread.h
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user