mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
pthread_{get,set}name_np is not standard.
This commit is contained in:
parent
3163563a27
commit
d21040e3d8
@ -52,7 +52,7 @@ void SetThreadName( std::thread::native_handle_type handle, const char* name )
|
||||
{
|
||||
}
|
||||
# endif
|
||||
#else
|
||||
#elif defined _GNU_SOURCE
|
||||
const auto sz = strlen( name );
|
||||
if( sz <= 15 )
|
||||
{
|
||||
@ -86,7 +86,7 @@ const char* GetThreadName( uint64_t id )
|
||||
}
|
||||
}
|
||||
# endif
|
||||
#else
|
||||
#elif defined _GNU_SOURCE
|
||||
if( pthread_getname_np( (pthread_t)id, buf, 256 ) == 0 )
|
||||
{
|
||||
return buf;
|
||||
|
Loading…
Reference in New Issue
Block a user