You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure what docs you expect. This stuff is rarely documented. macOS is 64 chars at least. Also the tracy thread names are > 15 and get truncated always. Seeing "Tracy Compress Wo" is not ideal. These should be shortened.
Also the macOS build GetThreadName doesn't return anything but an id. Code would look something like the following. The call needs a pthread ptr, and int (32-bit) won't hold that. I'm hoping that the thread name table returns valid names and so this code isn't needed.
TRACY_API const char* GetThreadName( uint32_t id )
{
#elif defined __APPLE__
static char nameBuf[63 + 1] = {0};
if (pthread_getname_np(static_cast<pthread_t*>(id), nameBuf, 63) == 0) {
return nameBuf;
};
}
The 15 character limit is an archaic limitation of Linux/Android, and not macOS/iOS. So the name here doesn't need truncated in TaskSystem.cpp
The text was updated successfully, but these errors were encountered: