File tree 1 file changed +3
-3
lines changed
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)
228
228
bool work_available = _dispatch_workq_root_queue_has_work (dq );
229
229
if (work_available ) {
230
230
_dispatch_workq_count_runnable_workers (mgr );
231
+ int32_t count = _dispatch_pthread_root_queue_thread_pool_size (dq );
231
232
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 );
234
235
235
236
if (mgr -> runnable_workers < mgr -> target_runnable_workers ) {
236
- int32_t count = _dispatch_pthread_root_queue_thread_pool_size (dq );
237
237
int32_t allowed_over = WORKQ_OVERSUBSCRIBE_FACTOR * mgr -> target_runnable_workers ;
238
238
allowed_over = MIN (allowed_over , WORKQ_MAX_TRACKED_WORKERS - mgr -> target_runnable_workers );
239
239
if (count + allowed_over > 0 ) {
You can’t perform that action at this time.
0 commit comments