Rename scrcpy threads

Prefix the name of threads by "scrcpy-". This improves readability in
the output of `top -H` for example.

Limit the thread names to 16 bytes, because it is limited on some
platforms.
This commit is contained in:
Romain Vimont 2021-12-09 21:32:11 +01:00
commit 3ada5c51bc
12 changed files with 19 additions and 13 deletions

View file

@ -804,7 +804,8 @@ error_connection_failed:
bool
sc_server_start(struct sc_server *server) {
bool ok = sc_thread_create(&server->thread, run_server, "server", server);
bool ok =
sc_thread_create(&server->thread, run_server, "scrcpy-server", server);
if (!ok) {
LOGE("Could not create server thread");
return false;