1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Cosmetics.

This commit is contained in:
Bartosz Taudul 2021-07-22 11:15:28 +02:00 committed by GitHub
parent 26c530a456
commit 04b78bd754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -963,14 +963,14 @@ ProfilerData* s_profilerData = nullptr;
static ProfilerThreadData& GetProfilerThreadData();
TRACY_API void StartupProfiler()
{
s_profilerData = (ProfilerData*)tracy_malloc( sizeof( ProfilerData ));
s_profilerData = (ProfilerData*)tracy_malloc( sizeof( ProfilerData ) );
new (s_profilerData) ProfilerData();
s_profilerData->profiler.SpawnWorkerThreads();
GetProfilerThreadData().token = ProducerWrapper(*s_profilerData);
GetProfilerThreadData().token = ProducerWrapper( *s_profilerData );
}
static ProfilerData& GetProfilerData()
{
assert(s_profilerData);
assert( s_profilerData );
return *s_profilerData;
}
TRACY_API void ShutdownProfiler()
@ -980,7 +980,7 @@ TRACY_API void ShutdownProfiler()
s_profilerData = nullptr;
rpmalloc_finalize();
RpThreadInitDone = false;
RpInitDone.store(0, std::memory_order_release);
RpInitDone.store( 0, std::memory_order_release );
}
# else
static std::atomic<int> profilerDataLock { 0 };