mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +00:00
Add thread naming on macOS and iOS
This commit is contained in:
parent
b471edbb80
commit
ccec4e8475
@ -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…
x
Reference in New Issue
Block a user