mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-21 18:26:06 -05:00
[db] Add thread name/id to db wait unlock
This commit is contained in:
committed by
ejurgensen
parent
5fec4bbe34
commit
5acf9dd336
@@ -1820,7 +1820,7 @@ thread_getnametid(char *buf, size_t len)
|
||||
pthread_t p = pthread_self();
|
||||
|
||||
thread_getname(p, thread_name, sizeof(thread_name));
|
||||
tid = thread_gettid();
|
||||
tid = thread_gettid() % 10000;
|
||||
snprintf(buf, len, "%s (%d)", thread_name, tid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user