mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
No thread names on emscripten.
This commit is contained in:
parent
824d9e9bca
commit
ab1f93194e
@ -68,7 +68,7 @@ void SetThreadName( std::thread::native_handle_type handle, const char* name )
|
||||
{
|
||||
}
|
||||
# endif
|
||||
#elif defined _GNU_SOURCE
|
||||
#elif defined _GNU_SOURCE && !defined __EMSCRIPTEN__
|
||||
const auto sz = strlen( name );
|
||||
if( sz <= 15 )
|
||||
{
|
||||
@ -133,7 +133,7 @@ const char* GetThreadName( uint64_t id )
|
||||
}
|
||||
}
|
||||
# endif
|
||||
# elif defined _GNU_SOURCE && !defined __ANDROID__
|
||||
# elif defined _GNU_SOURCE && !defined __ANDROID__ && !defined __EMSCRIPTEN__
|
||||
if( pthread_getname_np( (pthread_t)id, buf, 256 ) == 0 )
|
||||
{
|
||||
return buf;
|
||||
|
Loading…
Reference in New Issue
Block a user