2012-03-27 23:39:13 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2020-11-28 00:12:06 +01:00
|
|
|
#include <mutex>
|
|
|
|
|
|
2014-06-29 12:44:07 +02:00
|
|
|
// Note that name must be a global string that lives until the end of the process,
|
2020-12-01 00:46:26 +01:00
|
|
|
// for AssertCurrentThreadName to work.
|
|
|
|
|
void SetCurrentThreadName(const char *threadName);
|
|
|
|
|
void AssertCurrentThreadName(const char *threadName);
|
2021-06-12 21:06:59 +02:00
|
|
|
|
|
|
|
|
// Just gets a cheap thread identifier so that you can see different threads in debug output,
|
|
|
|
|
// exactly what it is is badly specified and not useful for anything.
|
|
|
|
|
int GetCurrentThreadIdForDebug();
|