mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-22 16:17:42 +00:00
Add thread naming on macOS and iOS
This commit is contained in:
1 parent
b471edbb80
commit
ccec4e8475
1 file changed
+2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user