Force TLS block creation on cygwin before malloc.

This commit is contained in:
Bartosz Taudul 2017-10-20 18:28:25 +02:00
parent e5e39d352b
commit f1da7c1c85
2 changed files with 2 additions and 2 deletions

View File

@ -132,10 +132,10 @@ public:
{
uint32_t cpu;
Magic magic;
auto& token = s_token.ptr;
auto ptr = (char*)tracy_malloc( size+1 );
memcpy( ptr, txt, size );
ptr[size] = '\0';
auto& token = s_token.ptr;
auto& tail = token->get_tail_index();
auto item = token->enqueue_begin<moodycamel::CanAlloc>( magic );
item->hdr.type = QueueType::Message;

View File

@ -44,10 +44,10 @@ public:
tracy_force_inline void Text( const char* txt, size_t size )
{
Magic magic;
auto& token = s_token.ptr;
auto ptr = (char*)tracy_malloc( size+1 );
memcpy( ptr, txt, size );
ptr[size] = '\0';
auto& token = s_token.ptr;
auto& tail = token->get_tail_index();
auto item = token->enqueue_begin<moodycamel::CanAlloc>( magic );
item->hdr.type = QueueType::ZoneText;