mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-02-16 10:30:59 +00:00
Add thread naming on macOS and iOS
This commit is contained in:
@@ -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