tracy/common
Bartosz Taudul b0fc0d5dcc
Check if rpmalloc has to be initialized before each operation.
The C++11 spec states in [basic.stc.thread] thread storage duration:

2. A variable with thread storage duration shall be initialized before its
   first odr-use (3.2) and, if constructed, shall be destroyed on thread exit.

Previously Tracy relied on the TLS data being initialized:
- During thread creation (MSVC).
- Or during first use in a thread, but the initialization was performed for
  the whole TLS block.

It seems that new compilers are more granular with how they perform the
initialization, hence rpmalloc init has to be checked before each allocation,
as it cannot be "folded" into, for example, initialization of the profiler
itself.
2021-05-31 02:31:42 +02:00
..
src-from-vcxproj.mk Factor out Unix build logic into shared files. 2020-07-31 11:08:36 -07:00
tracy_lz4.cpp Force inline LZ4_NbCommonBytes(). 2021-04-18 14:42:35 +02:00
tracy_lz4.hpp Wrap lz4 in tracy namespace, etc. 2020-11-16 18:13:19 +01:00
tracy_lz4hc.cpp Wrap lz4 in tracy namespace, etc. 2020-11-16 18:13:19 +01:00
tracy_lz4hc.hpp Wrap lz4 in tracy namespace, etc. 2020-11-16 18:13:19 +01:00
TracyAlign.hpp MemRead() uses const pointer. 2018-07-11 01:33:27 +02:00
TracyAlloc.hpp Check if rpmalloc has to be initialized before each operation. 2021-05-31 02:31:42 +02:00
TracyApi.h Add empty TRACY_API instead of using dllexport for static builds on windows. Using dllexport is not correct, because it marks APIs in static lib for export and these APIs would get exported from a DLL that links to tracy. 2020-05-05 13:23:46 +03:00
TracyColor.hpp Provide tracy color list in default client header. 2017-11-25 15:33:10 +01:00
TracyForceInline.hpp Fix force_inline on gcc/clang. 2018-04-21 19:22:27 +02:00
TracyMutex.hpp Remove benaphore, use std::mutex on cygwin. 2020-03-19 02:06:54 +01:00
TracyProtocol.hpp Last-resort source code transfer from client to server. 2021-02-04 00:45:00 +01:00
TracyQueue.hpp Add D3D11 Gpu Context/Zone 2021-05-01 14:55:45 -07:00
TracySocket.cpp PR feedback 2021-04-09 15:33:01 -07:00
TracySocket.hpp Broadcast to the given address. 2020-12-16 15:24:20 +01:00
TracySystem.cpp Check if rpmalloc has to be initialized before each operation. 2021-05-31 02:31:42 +02:00
TracySystem.hpp PR feedback 2021-04-09 15:33:01 -07:00
TracyYield.hpp Move TracyYield.hpp to common. 2021-05-31 02:19:35 +02:00
unix-release.mk Arm macos uses arm64 as machine name. 2021-01-26 22:54:54 +01:00
unix.mk Strip release binaries built with clang. 2021-01-26 22:52:08 +01:00