Add thread naming on macOS and iOS

This commit is contained in:
Cameron Gutman 2021-06-09 03:00:25 -05:00
parent b471edbb80
commit ccec4e8475

View File

@ -81,6 +81,8 @@ void* ThreadProc(void* context) {
setThreadNameWin32(ctx->name);
#elif defined(__linux__)
pthread_setname_np(pthread_self(), ctx->name);
#elif defined(LC_DARWIN)
pthread_setname_np(ctx->name);
#endif
ctx->entry(ctx->context);