Replace rpmalloc_thread_initialize with InitRPMallocThread().

This commit is contained in:
Bartosz Taudul 2020-01-25 16:56:54 +01:00
parent ab2fbd6164
commit aa94df0845
3 changed files with 6 additions and 7 deletions

View File

@ -870,7 +870,7 @@ TRACY_API moodycamel::ConcurrentQueue<QueueItem>& GetQueue();
struct RPMallocInit { RPMallocInit() { rpmalloc_initialize(); } };
void InitRPMallocThread()
TRACY_API void InitRPMallocThread()
{
rpmalloc_initialize();
rpmalloc_thread_initialize();
@ -948,7 +948,7 @@ TRACY_API LuaZoneState& GetLuaZoneState() { return GetProfilerThreadData().luaZo
# endif
#else
void InitRPMallocThread()
TRACY_API void InitRPMallocThread()
{
rpmalloc_thread_initialize();
}

View File

@ -57,8 +57,7 @@ TRACY_API std::atomic<uint32_t>& GetLockCounter();
TRACY_API std::atomic<uint8_t>& GetGpuCtxCounter();
TRACY_API GpuCtxWrapper& GetGpuCtx();
TRACY_API uint64_t GetThreadHandle();
void InitRPMallocThread();
TRACY_API void InitRPMallocThread();
struct SourceLocationData
{
@ -376,7 +375,7 @@ public:
# endif
const auto thread = GetThreadHandle();
rpmalloc_thread_initialize();
InitRPMallocThread();
auto callstack = Callstack( depth );
profiler.m_serialLock.lock();
@ -397,7 +396,7 @@ public:
# endif
const auto thread = GetThreadHandle();
rpmalloc_thread_initialize();
InitRPMallocThread();
auto callstack = Callstack( depth );
profiler.m_serialLock.lock();

View File

@ -49,7 +49,7 @@ struct ThreadNameData
ThreadNameData* next;
};
std::atomic<ThreadNameData*>& GetThreadNameData();
void InitRPMallocThread();
TRACY_API void InitRPMallocThread();
#endif
TRACY_API void SetThreadName( const char* name )