@@ -98,7 +98,8 @@ struct dispatch_pthread_root_queue_context_s {
98
98
typedef struct dispatch_pthread_root_queue_context_s *
99
99
dispatch_pthread_root_queue_context_t ;
100
100
101
- #if DISPATCH_ENABLE_THREAD_POOL
101
+ //#if DISPATCH_ENABLE_THREAD_POOL
102
+ #if DISPATCH_USE_PTHREAD_POOL
102
103
static struct dispatch_pthread_root_queue_context_s
103
104
_dispatch_pthread_root_queue_contexts [] = {
104
105
[DISPATCH_ROOT_QUEUE_IDX_MAINTENANCE_QOS ] = {
@@ -216,7 +217,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
216
217
.dgq_wq_priority = WORKQ_BG_PRIOQUEUE ,
217
218
.dgq_wq_options = 0 ,
218
219
#endif
219
- #if DISPATCH_ENABLE_THREAD_POOL
220
+ #if DISPATCH_USE_PTHREAD_POOL
220
221
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
221
222
DISPATCH_ROOT_QUEUE_IDX_MAINTENANCE_QOS ],
222
223
#endif
@@ -227,7 +228,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
227
228
.dgq_wq_priority = WORKQ_BG_PRIOQUEUE ,
228
229
.dgq_wq_options = WORKQ_ADDTHREADS_OPTION_OVERCOMMIT ,
229
230
#endif
230
- #if DISPATCH_ENABLE_THREAD_POOL
231
+ #if DISPATCH_USE_PTHREAD_POOL
231
232
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
232
233
DISPATCH_ROOT_QUEUE_IDX_MAINTENANCE_QOS_OVERCOMMIT ],
233
234
#endif
@@ -238,7 +239,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
238
239
.dgq_wq_priority = WORKQ_BG_PRIOQUEUE_CONDITIONAL ,
239
240
.dgq_wq_options = 0 ,
240
241
#endif
241
- #if DISPATCH_ENABLE_THREAD_POOL
242
+ #if DISPATCH_USE_PTHREAD_POOL
242
243
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
243
244
DISPATCH_ROOT_QUEUE_IDX_BACKGROUND_QOS ],
244
245
#endif
@@ -249,7 +250,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
249
250
.dgq_wq_priority = WORKQ_BG_PRIOQUEUE_CONDITIONAL ,
250
251
.dgq_wq_options = WORKQ_ADDTHREADS_OPTION_OVERCOMMIT ,
251
252
#endif
252
- #if DISPATCH_ENABLE_THREAD_POOL
253
+ #if DISPATCH_USE_PTHREAD_POOL
253
254
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
254
255
DISPATCH_ROOT_QUEUE_IDX_BACKGROUND_QOS_OVERCOMMIT ],
255
256
#endif
@@ -260,7 +261,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
260
261
.dgq_wq_priority = WORKQ_LOW_PRIOQUEUE ,
261
262
.dgq_wq_options = 0 ,
262
263
#endif
263
- #if DISPATCH_ENABLE_THREAD_POOL
264
+ #if DISPATCH_USE_PTHREAD_POOL
264
265
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
265
266
DISPATCH_ROOT_QUEUE_IDX_UTILITY_QOS ],
266
267
#endif
@@ -271,9 +272,11 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
271
272
.dgq_wq_priority = WORKQ_LOW_PRIOQUEUE ,
272
273
.dgq_wq_options = WORKQ_ADDTHREADS_OPTION_OVERCOMMIT ,
273
274
#endif
274
- #if DISPATCH_ENABLE_THREAD_POOL
275
+ #if DISPATCH_USE_PTHREAD_POOL
275
276
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
276
277
DISPATCH_ROOT_QUEUE_IDX_UTILITY_QOS_OVERCOMMIT ],
278
+ #else
279
+ #error "bullshit"
277
280
#endif
278
281
}}},
279
282
[DISPATCH_ROOT_QUEUE_IDX_DEFAULT_QOS ] = {{{
@@ -282,7 +285,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
282
285
.dgq_wq_priority = WORKQ_DEFAULT_PRIOQUEUE ,
283
286
.dgq_wq_options = 0 ,
284
287
#endif
285
- #if DISPATCH_ENABLE_THREAD_POOL
288
+ #if DISPATCH_USE_PTHREAD_POOL
286
289
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
287
290
DISPATCH_ROOT_QUEUE_IDX_DEFAULT_QOS ],
288
291
#endif
@@ -293,7 +296,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
293
296
.dgq_wq_priority = WORKQ_DEFAULT_PRIOQUEUE ,
294
297
.dgq_wq_options = WORKQ_ADDTHREADS_OPTION_OVERCOMMIT ,
295
298
#endif
296
- #if DISPATCH_ENABLE_THREAD_POOL
299
+ #if DISPATCH_USE_PTHREAD_POOL
297
300
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
298
301
DISPATCH_ROOT_QUEUE_IDX_DEFAULT_QOS_OVERCOMMIT ],
299
302
#endif
@@ -304,7 +307,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
304
307
.dgq_wq_priority = WORKQ_HIGH_PRIOQUEUE ,
305
308
.dgq_wq_options = 0 ,
306
309
#endif
307
- #if DISPATCH_ENABLE_THREAD_POOL
310
+ #if DISPATCH_USE_PTHREAD_POOL
308
311
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
309
312
DISPATCH_ROOT_QUEUE_IDX_USER_INITIATED_QOS ],
310
313
#endif
@@ -315,7 +318,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
315
318
.dgq_wq_priority = WORKQ_HIGH_PRIOQUEUE ,
316
319
.dgq_wq_options = WORKQ_ADDTHREADS_OPTION_OVERCOMMIT ,
317
320
#endif
318
- #if DISPATCH_ENABLE_THREAD_POOL
321
+ #if DISPATCH_USE_PTHREAD_POOL
319
322
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
320
323
DISPATCH_ROOT_QUEUE_IDX_USER_INITIATED_QOS_OVERCOMMIT ],
321
324
#endif
@@ -326,7 +329,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
326
329
.dgq_wq_priority = WORKQ_HIGH_PRIOQUEUE_CONDITIONAL ,
327
330
.dgq_wq_options = 0 ,
328
331
#endif
329
- #if DISPATCH_ENABLE_THREAD_POOL
332
+ #if DISPATCH_USE_PTHREAD_POOL
330
333
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
331
334
DISPATCH_ROOT_QUEUE_IDX_USER_INTERACTIVE_QOS ],
332
335
#endif
@@ -337,7 +340,7 @@ static struct dispatch_root_queue_context_s _dispatch_root_queue_contexts[] = {
337
340
.dgq_wq_priority = WORKQ_HIGH_PRIOQUEUE_CONDITIONAL ,
338
341
.dgq_wq_options = WORKQ_ADDTHREADS_OPTION_OVERCOMMIT ,
339
342
#endif
340
- #if DISPATCH_ENABLE_THREAD_POOL
343
+ #if DISPATCH_USE_PTHREAD_POOL
341
344
.dgq_ctxt = & _dispatch_pthread_root_queue_contexts [
342
345
DISPATCH_ROOT_QUEUE_IDX_USER_INTERACTIVE_QOS_OVERCOMMIT ],
343
346
#endif
0 commit comments