Skip to content

Commit

Permalink
[SERVER] Threadpool: Add active thread count to error message
Browse files Browse the repository at this point in the history
srett committed Jun 14, 2023
1 parent 1661589 commit fd29067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/threadpool.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit fd29067

Please sign in to comment.