mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 20:16:14 -05:00
[logger] Add thread name and thread id to log messages
This commit is contained in:
committed by
ejurgensen
parent
7cde752f20
commit
5fec4bbe34
11
src/misc.h
11
src/misc.h
@@ -316,6 +316,17 @@ buildopts_get(void);
|
||||
int
|
||||
mutex_init(pthread_mutex_t *mutex);
|
||||
|
||||
// wrapper for gettid/pthread_getthreadid_np
|
||||
int
|
||||
thread_gettid();
|
||||
|
||||
// wrapper for pthread_getname_np/pthread_get_name_np
|
||||
void
|
||||
thread_getname(pthread_t thread, char *name, size_t len);
|
||||
|
||||
void
|
||||
thread_getnametid(char *buf, size_t len);
|
||||
|
||||
// wrapper for pthread_setname_np/pthread_set_name_np
|
||||
void
|
||||
thread_setname(pthread_t thread, const char *name);
|
||||
|
||||
Reference in New Issue
Block a user