Add thread naming on macOS and iOS
This commit is contained in:
parent
b471edbb80
commit
ccec4e8475
1 changed files with 2 additions and 0 deletions
|
|
@ -81,6 +81,8 @@ void* ThreadProc(void* context) {
|
||||||
setThreadNameWin32(ctx->name);
|
setThreadNameWin32(ctx->name);
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
pthread_setname_np(pthread_self(), ctx->name);
|
pthread_setname_np(pthread_self(), ctx->name);
|
||||||
|
#elif defined(LC_DARWIN)
|
||||||
|
pthread_setname_np(ctx->name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ctx->entry(ctx->context);
|
ctx->entry(ctx->context);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue