Move calls to thread_setname() into the thread start routines and move to a single argument thread_setname()

This commit is contained in:
Brad Keifer
2025-11-09 18:52:35 +11:00
parent 28528abbcd
commit 9c8728f10f
14 changed files with 22 additions and 22 deletions

View File

@@ -415,6 +415,7 @@ static struct lws_protocols protocols[] =
static void *
websocket(void *arg)
{
thread_setname("websocket");
listener_add(listener_cb, LISTENER_UPDATE | LISTENER_DATABASE | LISTENER_PAIRING | LISTENER_SPOTIFY | LISTENER_LASTFM | LISTENER_SPEAKER
| LISTENER_PLAYER | LISTENER_OPTIONS | LISTENER_VOLUME | LISTENER_QUEUE, NULL);
@@ -533,8 +534,6 @@ websocket_init(void)
return -1;
}
thread_setname(tid_websocket, "websocket");
websocket_is_initialized = true;
return 0;