Super bad thread name resolution.

This commit is contained in:
Bartosz Taudul 2017-09-22 01:50:14 +02:00
parent 3032745cce
commit 3ba6046a53

View File

@ -1,6 +1,7 @@
#ifndef __TRACYTHREAD_HPP__ #ifndef __TRACYTHREAD_HPP__
#define __TRACYTHREAD_HPP__ #define __TRACYTHREAD_HPP__
#include <inttypes.h>
#include <stdint.h> #include <stdint.h>
#include <thread> #include <thread>
@ -24,6 +25,13 @@ namespace tracy
#endif #endif
} }
static inline const char* GetThreadName( uint64_t id )
{
static char buf[64];
sprintf( buf, "%" PRIu64, id );
return buf;
}
} }
#endif #endif