From ccec4e8475fb5a5de66b4a0af3934003a9f74618 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 9 Jun 2021 03:00:25 -0500 Subject: [PATCH] Add thread naming on macOS and iOS --- src/Platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Platform.c b/src/Platform.c index 52299db..9d25fee 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -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);