Add method to get name of current thread

This commit is contained in:
Jonathan G Rennison
2018-08-25 23:39:10 +01:00
parent 312595b737
commit dde88887ae
6 changed files with 59 additions and 0 deletions

View File

@@ -133,4 +133,12 @@ void SetSelfAsMainThread();
*/
bool IsMainThread();
/**
* Get the name of the current thread, if any.
* @param str The start of the buffer.
* @param last The last char of the buffer.
* @return Number of chars written to str.
*/
int GetThreadName(char *str, const char *last);
#endif /* THREAD_H */