Skip to content

Commit b1cdf6b

Browse files
committed
Initial merge of darwin/libdispatch-1121 into GitHub master.
2 parents bc00e13 + 43a77d2 commit b1cdf6b

File tree

106 files changed

+19272
-12228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+19272
-12228
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ if(ENABLE_INTERNAL_PTHREAD_WORKQUEUES)
110110
set(HAVE_PTHREAD_WORKQUEUES 0)
111111
else()
112112
check_include_files(pthread/workqueue_private.h HAVE_PTHREAD_WORKQUEUE_PRIVATE_H)
113-
check_include_files(pthread_workqueue.h HAVE_PTHREAD_WORKQUEUE_H)
114-
if(HAVE_PTHREAD_WORKQUEUE_PRIVATE_H AND HAVE_PTHREAD_WORKQUEUE_H)
113+
if(HAVE_PTHREAD_WORKQUEUE_PRIVATE_H)
115114
set(HAVE_PTHREAD_WORKQUEUES 1)
116115
set(DISPATCH_USE_INTERNAL_WORKQUEUE 0)
117116
else()
@@ -191,6 +190,8 @@ check_function_exists(malloc_create_zone HAVE_MALLOC_CREATE_ZONE)
191190
check_function_exists(posix_fadvise HAVE_POSIX_FADVISE)
192191
check_function_exists(posix_spawnp HAVE_POSIX_SPAWNP)
193192
check_function_exists(pthread_key_init_np HAVE_PTHREAD_KEY_INIT_NP)
193+
check_function_exists(pthread_attr_setcpupercent_np HAVE_PTHREAD_ATTR_SETCPUPERCENT_NP)
194+
check_function_exists(pthread_yield_np HAVE_PTHREAD_YIELD_NP)
194195
check_function_exists(pthread_main_np HAVE_PTHREAD_MAIN_NP)
195196
check_function_exists(pthread_workqueue_setdispatch_np HAVE_PTHREAD_WORKQUEUE_SETDISPATCH_NP)
196197
check_function_exists(strlcpy HAVE_STRLCPY)
@@ -269,6 +270,7 @@ check_symbol_exists(VQ_NEARLOWDISK "sys/mount.h" HAVE_DECL_VQ_NEARLOWDISK)
269270
check_symbol_exists(VQ_QUOTA "sys/mount.h" HAVE_DECL_VQ_QUOTA)
270271
check_symbol_exists(VQ_UPDATE "sys/mount.h" HAVE_DECL_VQ_UPDATE)
271272
check_symbol_exists(VQ_VERYLOWDISK "sys/mount.h" HAVE_DECL_VQ_VERYLOWDISK)
273+
check_symbol_exists(VQ_FREE_SPACE_CHANGE "sys/mount.h" HAVE_DECL_VQ_FREE_SPACE_CHANGE)
272274
check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
273275
check_symbol_exists(program_invocation_name "errno.h" HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME)
274276
if (HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME)

PATCHES

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,84 @@ github commits starting with 29bdc2f from
353353
[8947dcf] APPLIED rdar://33531111
354354
[5ad9208] APPLIED rdar://33531111
355355
[698d085] APPLIED rdar://33531111
356+
[ce1ce45] APPLIED rdar://35017478
357+
[291f34d] APPLIED rdar://35017478
358+
[666df60] APPLIED rdar://35017478
359+
[80dd736] APPLIED rdar://35017478
360+
[0fd5a69] APPLIED rdar://35017478
361+
[0e35ed9] APPLIED rdar://35017478
362+
[70ce56b] APPLIED rdar://35017478
363+
[40fc1f3] APPLIED rdar://35017478
364+
[9ec74ed] APPLIED rdar://35017478
365+
[7f330ed] APPLIED rdar://35017478
366+
[947b51c] APPLIED rdar://35017478
367+
[295f676] APPLIED rdar://35017478
368+
[48196a2] APPLIED rdar://35017478
369+
[a28fc2b] APPLIED rdar://35017478
370+
[791ce5d] APPLIED rdar://35017478
371+
[0d0a998] APPLIED rdar://35017478
372+
[29329b5] APPLIED rdar://35017478
373+
[141403a] APPLIED rdar://35017478
374+
[b7f1beb] APPLIED rdar://35017478
375+
[7ef9cde] APPLIED rdar://35017478
376+
[12c9ca8] APPLIED rdar://35017478
377+
[6d6dc2e] APPLIED rdar://40252515
378+
[4a9833d] APPLIED rdar://40252515
379+
[f88e382] APPLIED rdar://40252515
380+
[bfa9aa7] APPLIED rdar://40252515
381+
[44f3640] APPLIED rdar://40252515
382+
[3b06f54] APPLIED rdar://40252515
383+
[e245cbe] APPLIED rdar://40252515
384+
[2a539d6] APPLIED rdar://40252515
385+
[e52c174] APPLIED rdar://40252515
386+
[723bd98] APPLIED rdar://40252515
387+
[7e7a579] APPLIED rdar://40252515
388+
[244a5fe] APPLIED rdar://40252515
389+
[8b72f76] APPLIED rdar://40252515
390+
[f3531a2] APPLIED rdar://40252515
391+
[5cf8acb] APPLIED rdar://40252515
392+
[dc01e36] APPLIED rdar://40252515
393+
[2d6d1fd] APPLIED rdar://40252515
394+
[fdd671d] APPLIED rdar://40252515
395+
[698220e] APPLIED rdar://40252515
396+
[9c792ac] APPLIED rdar://40252515
397+
[b5ec5d8] APPLIED rdar://40252515
398+
[9295346] APPLIED rdar://40252515
399+
[bbf03ca] APPLIED rdar://40252515
400+
[8d3aa22] APPLIED rdar://40252515
401+
[f151b33] APPLIED rdar://40252515
402+
[f6e6917] APPLIED rdar://40252515
403+
[f83b5a4] APPLIED rdar://40252515
404+
[c4d6402] APPLIED rdar://40252515
405+
[1457de8] APPLIED rdar://40252515
406+
[c025baa] APPLIED rdar://40252515
407+
[a618b46] APPLIED rdar://40252515
408+
[e723a8e] APPLIED rdar://44568645
409+
[4ac77b7] APPLIED rdar://44568645
410+
[03696d7] APPLIED rdar://44568645
411+
[44f67b2] APPLIED rdar://44568645
412+
[b15ee59] APPLIED rdar://44568645
413+
[d29ed37] APPLIED rdar://44568645
414+
[65ebc0c] APPLIED rdar://44568645
415+
[93c64d8] APPLIED rdar://44568645
416+
[1271df6] APPLIED rdar://44568645
417+
[84ac6ac] APPLIED rdar://44568645
418+
[30d3c8c] APPLIED rdar://44568645
419+
[12ff819] APPLIED rdar://44568645
420+
[82342ee] APPLIED rdar://44568645
421+
[b13a51e] APPLIED rdar://44568645
422+
[6bf3065] APPLIED rdar://44568645
423+
[631821c] APPLIED rdar://44568645
424+
[e764f34] APPLIED rdar://44568645
425+
[ff1daf8] APPLIED rdar://44568645
426+
[b863538] APPLIED rdar://44568645
427+
[ba3933d] APPLIED rdar://44568645
428+
[9c48a80] APPLIED rdar://44568645
429+
[5f49e8b] APPLIED rdar://44568645
430+
[653a523] APPLIED rdar://44568645
431+
[ac5f4c4] APPLIED rdar://44568645
432+
[57139c6] APPLIED rdar://44568645
433+
[ba74b6a] APPLIED rdar://44568645
434+
[3975b58] APPLIED rdar://44568645
435+
[81dc900] APPLIED rdar://44568645
436+
[6162a1d] APPLIED rdar://44568645

cmake/config.h.in

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
you don't. */
8282
#cmakedefine01 HAVE_DECL_VQ_VERYLOWDISK
8383

84+
/* Define to 1 if you have the declaration of `VQ_FREE_SPACE_CHANGE', and to 0 if
85+
you don't. */
86+
#cmakedefine01 HAVE_DECL_VQ_FREE_SPACE_CHANGE
87+
8488
/* Define to 1 if you have the <dlfcn.h> header file. */
8589
#cmakedefine01 HAVE_DLFCN_H
8690

@@ -141,12 +145,18 @@
141145
/* Define to 1 if you have the `pthread_key_init_np' function. */
142146
#cmakedefine HAVE_PTHREAD_KEY_INIT_NP
143147

148+
/* Define to 1 if you have the `pthread_attr_setcpupercent_np' function. */
149+
#cmakedefine HAVE_PTHREAD_ATTR_SETCPUPERCENT_NP
150+
144151
/* Define to 1 if you have the <pthread_machdep.h> header file. */
145152
#cmakedefine HAVE_PTHREAD_MACHDEP_H
146153

147154
/* Define to 1 if you have the `pthread_main_np' function. */
148155
#cmakedefine01 HAVE_PTHREAD_MAIN_NP
149156

157+
/* Define to 1 if you have the `pthread_yield_np' function. */
158+
#cmakedefine01 HAVE_PTHREAD_YIELD_NP
159+
150160
/* Define to 1 if you have the <pthread_np.h> header file. */
151161
#cmakedefine01 HAVE_PTHREAD_NP_H
152162

@@ -162,9 +172,6 @@
162172
/* Define to 1 if you have the <pthread/workqueue_private.h> header file. */
163173
#cmakedefine HAVE_PTHREAD_WORKQUEUE_PRIVATE_H
164174

165-
/* Define to 1 if you have the `pthread_workqueue_setdispatch_np' function. */
166-
#cmakedefine HAVE_PTHREAD_WORKQUEUE_SETDISPATCH_NP
167-
168175
/* Define to 1 if you have the <stdint.h> header file. */
169176
#cmakedefine01 HAVE_STDINT_H
170177

0 commit comments

Comments
 (0)