diff options
author | Simon Rettberg | 2023-06-14 11:04:17 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-06-14 11:04:17 +0200 |
commit | fd2906767361f901cbe0a7a529e933044c1cad7d (patch) | |
tree | a3d4f2db63557654d78a1a741a62c586bd6dc988 | |
parent | github: Update 4.19 build env to Ubuntu 20.04 (diff) | |
download | dnbd3-fd2906767361f901cbe0a7a529e933044c1cad7d.tar.gz dnbd3-fd2906767361f901cbe0a7a529e933044c1cad7d.tar.xz dnbd3-fd2906767361f901cbe0a7a529e933044c1cad7d.zip |
[SERVER] Threadpool: Add active thread count to error message
-rw-r--r-- | src/server/threadpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/threadpool.c b/src/server/threadpool.c index cf39d5c..a21bd0d 100644 --- a/src/server/threadpool.c +++ b/src/server/threadpool.c @@ -89,7 +89,7 @@ bool threadpool_run(void *(*startRoutine)(void *), void *arg, const char *name) return false; } if ( 0 != thread_create( &(entry->thread), &threadAttrs, threadpool_worker, (void*)entry ) ) { - logadd( LOG_WARNING, "Could not create new thread for thread pool\n" ); + logadd( LOG_WARNING, "Could not create new thread for thread pool (%d active)\n", (int)activeThreads ); signal_close( entry->signal ); free( entry ); return false; |