[logger] Add thread name and thread id to log messages

This commit is contained in:
Christian Meffert
2025-02-15 19:55:29 +00:00
committed by ejurgensen
parent 7cde752f20
commit 5fec4bbe34
4 changed files with 60 additions and 2 deletions

View File

@@ -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);