File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments