mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-05 04:49:19 +00:00
Fix thread ids on osx, iphone.
This commit is contained in:
@@ -91,6 +91,8 @@ void SetThreadName( std::thread::native_handle_type handle, const char* name )
|
||||
auto data = (ThreadNameData*)tracy_malloc( sizeof( ThreadNameData ) );
|
||||
# ifdef _WIN32
|
||||
data->id = GetThreadId( static_cast<HANDLE>( handle ) );
|
||||
# elif defined __MACOSX__ || defined __IPHONE__
|
||||
pthread_thread_id( handle, data->id );
|
||||
# else
|
||||
data->id = (uint64_t)handle;
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user