Skip to content

Commit 143ae0a

Browse files
committed
tweak debug message
1 parent 8b0a42f commit 143ae0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/event/workqueue.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ _dispatch_workq_monitor_thread_pool(void *context DISPATCH_UNUSED)
228228
bool work_available = _dispatch_workq_root_queue_has_work(dq);
229229
if (work_available) {
230230
_dispatch_workq_count_runnable_workers(mgr);
231+
int32_t count = _dispatch_pthread_root_queue_thread_pool_size(dq);
231232

232-
_dispatch_debug("workq: %s is non-empty and has %d runnable workers\n",
233-
dq->dq_label, mgr->runnable_workers);
233+
_dispatch_debug("workq: %s is non-empty with pool count %d (%d runnable)",
234+
dq->dq_label, count, mgr->runnable_workers);
234235

235236
if (mgr->runnable_workers < mgr->target_runnable_workers) {
236-
int32_t count = _dispatch_pthread_root_queue_thread_pool_size(dq);
237237
int32_t allowed_over = WORKQ_OVERSUBSCRIBE_FACTOR * mgr->target_runnable_workers;
238238
allowed_over = MIN(allowed_over, WORKQ_MAX_TRACKED_WORKERS - mgr->target_runnable_workers);
239239
if (count + allowed_over > 0) {

0 commit comments

Comments
 (0)