Move Set/GetThreadName() to Tracy API.

This commit is contained in:
Bartosz Taudul
2020-01-25 16:17:03 +01:00
parent 2377911313
commit a90004b983
4 changed files with 11 additions and 11 deletions

View File

@@ -48,11 +48,11 @@ struct ThreadNameData
const char* name;
ThreadNameData* next;
};
TRACY_API std::atomic<ThreadNameData*>& GetThreadNameData();
TRACY_API void InitRPMallocThread();
std::atomic<ThreadNameData*>& GetThreadNameData();
void InitRPMallocThread();
#endif
void SetThreadName( const char* name )
TRACY_API void SetThreadName( const char* name )
{
#if defined _WIN32 || defined __CYGWIN__
# if defined NTDDI_WIN10_RS2 && NTDDI_VERSION >= NTDDI_WIN10_RS2
@@ -118,7 +118,7 @@ void SetThreadName( const char* name )
#endif
}
const char* GetThreadName( uint64_t id )
TRACY_API const char* GetThreadName( uint64_t id )
{
static char buf[256];
#ifdef TRACY_ENABLE