mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-01 13:48:58 +00:00
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:
parent
09c55b0f93
commit
3ada5c51bc
12 changed files with 19 additions and 13 deletions
|
@ -111,8 +111,8 @@ bool
|
|||
receiver_start(struct receiver *receiver) {
|
||||
LOGD("Starting receiver thread");
|
||||
|
||||
bool ok = sc_thread_create(&receiver->thread, run_receiver, "receiver",
|
||||
receiver);
|
||||
bool ok = sc_thread_create(&receiver->thread, run_receiver,
|
||||
"scrcpy-receiver", receiver);
|
||||
if (!ok) {
|
||||
LOGC("Could not start receiver thread");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue