Skip to content

Merge darwin/libdispatch-806 to master and apply Linux build fixes #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 110 commits into from
Feb 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
4eae3cd
[SE-0111] Update for removal of argument labels from function types
DougGregor Jul 30, 2016
623e474
Merge pull request #126 from apple/enable-se-0111
DougGregor Jul 30, 2016
58e1a4a
whitespace
das Oct 20, 2016
239b193
fix issues preventing overlay from compiling due to SE-0025
jpsim Jul 29, 2016
3ee02d7
Merge pull request #124 from jpsim/jp-overlay-fixes
DougGregor Jul 30, 2016
6ba8327
whitespace
das Oct 20, 2016
2fe547e
Update for Unsafe(Mutable)Pointer changes.
DougGregor Jul 30, 2016
8fd64e3
Merge pull request #128 from apple/unsafe-pointer-fixes
DougGregor Jul 30, 2016
6cf609d
whitespace
das Oct 20, 2016
b6451f2
[SE-0101] Migrate sizeof family to MemoryLayout
rintaro Jul 29, 2016
8145a07
[SE-0101] .size to .stride
rintaro Jul 29, 2016
24b5b96
Merge pull request #129 from rintaro/SE-0101
mwwa Aug 1, 2016
a60dd23
[noescape by default] Migration to @noescape by default feature.
gonzalolarralde Jul 30, 2016
4354ce6
Add escaping attribute on IO completion handlers.
gonzalolarralde Jul 31, 2016
7882efb
Merge pull request #130 from gonzalolarralde/noescape-migration
mwwa Aug 1, 2016
ec21dea
whitespace
das Oct 20, 2016
11a022b
Update libpwq for fix to race condition in libpwq's test_api
seabaylea Aug 4, 2016
386cc1c
Merge pull request #134 from seabaylea/pwq_api_test
MadCoder Aug 4, 2016
28974c2
SR-2309: embed BlocksRuntime in libdispatch to eliminate external dep…
dgrove-oss Aug 9, 2016
182e873
Merge pull request #139 from dgrove-oss/integrated-blocks-runtime
MadCoder Aug 10, 2016
2ff5e2a
Added Toolchain section in INSTALL.md
amraboelela Aug 9, 2016
56782c5
Merge pull request #138 from amraboelela/INSTALL
MadCoder Aug 10, 2016
fc07e51
whitespace
das Oct 20, 2016
93d7a45
update INSTALL.md and README.md
dgrove-oss Aug 10, 2016
831dc73
Merge pull request #140 from dgrove-oss/update-install-readme
MadCoder Aug 10, 2016
1a75fc2
fixes for compilation/linking problems on linux
dgrove-oss Aug 12, 2016
50443bd
xcode / autoconf plumbing to select module.modulemap file
dgrove-oss Aug 12, 2016
aa4a64e
ensure root_queues are initialized before main thread exits
dgrove-oss Aug 13, 2016
684d7e1
Merge pull request #144 from dgrove-oss/linux-compile-fixes
das Aug 15, 2016
e9a78f6
fix help string for --enable-embedded-blocks-runtime
dgrove-oss Aug 15, 2016
306d2e1
Merge pull request #147 from dgrove-oss/fix-help-string-for-embedded-…
MadCoder Aug 15, 2016
0ffdbc5
update bug reporting URL and project homepage
dgrove-oss Aug 15, 2016
d1b4864
Merge pull request #148 from dgrove-oss/update-project-info
MadCoder Aug 15, 2016
2b0fe21
bugfix in Linux wrapper: DispatchGroup.leave should call leave, not e…
dgrove-oss Aug 17, 2016
4aeb96b
Merge pull request #152 from dgrove-oss/dispatch-group-leave-bugfix
MadCoder Aug 17, 2016
7ec98af
Attempt to update for SE-0103 (@noescape by default)
slavapestov Aug 18, 2016
78f0b80
Merge pull request #154 from slavapestov/update-for-SE-0103
slavapestov Aug 18, 2016
24f6941
whitespace
das Oct 20, 2016
d34f135
SR-2356 : Remove temporary APIs from Linux overlay
dgrove-oss Aug 24, 2016
b04860b
Merge pull request #163 from dgrove-oss/sr-2356
MadCoder Aug 25, 2016
fc603ff
Fix building on armv7
hpux735 Aug 19, 2016
cff6bca
Merge pull request #155 from hpux735/hpux735/arm
MadCoder Aug 27, 2016
fb49753
handle EWOULDBLOCK error in _dispatch_operation_perform
Aug 31, 2016
6682efb
Merge pull request #166 from chsu-ibm/handle-ewouldblock-error
MadCoder Aug 31, 2016
4cf1ab4
[libdispatch-fixits] Address stale or incorrect fixits
dgrove-oss Sep 9, 2016
502de59
Merge pull request #167 from dgrove-oss/fix-fixits
MadCoder Sep 9, 2016
77be766
Add fast path for queue.async(flags: .barrier)
dgrove-oss Sep 9, 2016
0bdebb6
Merge pull request #169 from dgrove-oss/fast-path-for-barrier
MadCoder Sep 9, 2016
3656d38
Fix some small divergences from Darwin overlay
dgrove-oss Sep 12, 2016
cede2fa
Merge pull request #170 from dgrove-oss/fix-small-deltas-from-darwin
MadCoder Sep 12, 2016
be66258
Correct signedness handling of DispatchTimeInterval
dgrove-oss Sep 9, 2016
997db50
Merge pull request #168 from dgrove-oss/libdispatch-time-signedness
mwwa Sep 13, 2016
2290d48
Merge pull request #171 from karwa/fixfixit
MadCoder Sep 20, 2016
3f74b45
remove unused/incorrect internal init from DispatchIO
dgrove-oss Sep 22, 2016
670c2a6
Merge pull request #174 from dgrove-oss/remove-misplaced-internal-init
MadCoder Sep 22, 2016
a7504ee
SR-2656: extra releases of dispatch_data_t objects on Linux
dgrove-oss Sep 22, 2016
80cf862
Merge pull request #175 from dgrove-oss/SR-2656
MadCoder Sep 22, 2016
1c9f354
update libkqueue and libpwq submodules
dgrove-oss Sep 25, 2016
dd4f76d
Merge pull request #179 from dgrove-oss/update-submodules
MadCoder Sep 25, 2016
f7f98d5
Add dependency on swiftc for %.o.%.swift rules
dgrove-oss Sep 23, 2016
f894844
Merge pull request #178 from dgrove-oss/depend-on-swiftc
MadCoder Sep 26, 2016
2070119
configure support for extended test suite
dgrove-oss Nov 2, 2016
5c3faa9
Merge pull request #187 from dgrove-oss/extended-test-suite
erg Nov 9, 2016
c762afb
Avoid invoking swiftc -front-end when building Dispatch overlay
dgrove-oss Nov 21, 2016
44a7316
Merge pull request #191 from dgrove-oss/swiftc-rule-cleanup
MadCoder Nov 21, 2016
1b80187
Adds options to `configure` in a similar fashion and with similar con…
gonzalolarralde Aug 21, 2016
3c01964
Merge pull request #162 from gonzalolarralde/android-support
MadCoder Nov 27, 2016
db9cab8
whitespace
das Feb 17, 2017
12b4373
SR-3002: DispatchData.enumerateBytes on Linux leaks the block
dgrove-oss Oct 24, 2016
ac2bb91
Merge pull request #186 from dgrove-oss/SR-3002
MadCoder Dec 8, 2016
4e80de2
Fix libdispatch's copy of objc_retainAutoreleasedReturnValue.
Dec 20, 2016
a7dd7bd
os_string for android was resolved as linux
gonzalolarralde Jan 2, 2017
df06bf2
Improve swiftlibdir and swiftmoddir generation
gonzalolarralde Jan 2, 2017
8300b6a
Merge pull request #197 from gonzalolarralde/host-install-path
MadCoder Jan 4, 2017
c4e2b93
various cleanups
compnerd Dec 28, 2016
4339056
Merge pull request #195 from compnerd/cleanups
MadCoder Jan 5, 2017
e87f490
remove code duplication between android_stubs.h and linux_stubs.h, wh…
das Feb 17, 2017
aa32c4a
SR-3477: replace unsafeBitCast by withoutActuallyEscaping
dgrove-oss Jan 4, 2017
6874715
Merge pull request #198 from dgrove-oss/SR-3477
MadCoder Jan 5, 2017
382f25a
consider affinity when computing active cpus on Linux
dgrove-oss Jan 12, 2017
e6fed7e
Merge pull request #199 from dgrove-oss/hwconfig-respect-affinity
MadCoder Jan 12, 2017
1e5f5e3
don't hold references to unowned DispatchData objects (SR-3628)
weissi Jan 16, 2017
8b3284c
Merge pull request #200 from weissi/jw-SR-3628
MadCoder Jan 20, 2017
8a6e467
Fix + and - operations on DispatchTime and DispatchWallTime
Jan 21, 2017
a5fac6b
Merge pull request #202 from moiseev/nan-time
moiseev Jan 23, 2017
bb543ee
update libpwq and libkqueue submodule versions
dgrove-oss Jan 24, 2017
33772ec
Merge pull request #203 from dgrove-oss/update-submodules
MadCoder Jan 24, 2017
2eacf2d
Correct the Xcode fixits for dispatch_async() and dispatch_group_asyn…
ktopley-apple Jan 25, 2017
72d54b0
Merge pull request #205 from ktopley-apple/dispatch-corelibs-async-fixit
ktopley-apple Jan 27, 2017
5bf2244
Fixes inccorrect behavior of DispatchData.copyBytes() when the start …
ktopley-apple Jan 25, 2017
b8fbcf9
Merge pull request #204 from ktopley-apple/corelibs-dispatch-data-copy
ktopley-apple Jan 30, 2017
e667892
SR-3771 and SR-3751: libdispatch dependency on libkqueue
dgrove-oss Jan 30, 2017
7426829
Merge pull request #207 from dgrove-oss/SR-3771
MadCoder Feb 1, 2017
dc61243
Fixes crash when DispatchData is created from an UnsafeBufferPointer<…
ktopley-apple Feb 2, 2017
96b5198
Merge pull request #208 from ktopley-apple/dispatch-data-null-buffer
moiseev Feb 2, 2017
dab530d
Adding documentation to clarify the result of DispatchTime(uptimeNano…
ktopley-apple Feb 8, 2017
ae595db
Merge pull request #210 from ktopley-apple/dispatch-time-0-doc
moiseev Feb 10, 2017
b1ca093
Remove ObjC support functions not needed on non-ObjC platforms
spevans Jan 12, 2017
70ac235
Merge pull request #213 from spevans/pr_unneeded_objc
MadCoder Feb 15, 2017
f7a7524
Remove unused include of sys/user.h
dgrove-oss Feb 16, 2017
13aebd2
Merge pull request #214 from dgrove-oss/tweak-linux_base
MadCoder Feb 16, 2017
ff7dc5b
Merge libdispatch-743
das Oct 25, 2016
dcdacda
Merge libdispatch-749
das Nov 7, 2016
1f28b9d
Merge libdispatch-806
das Feb 17, 2017
fd62a2a
merge darwin/darwin-007
das Feb 21, 2017
7a9f36a
merge darwin/libdispatch-743
das Feb 21, 2017
fa4e3e3
merge darwin/libdispatch-749
das Feb 21, 2017
763d0c7
merge darwin/libdispatch-806
das Feb 21, 2017
7b4281e
Linux fixes for dispatch-806 merge
dgrove-oss Feb 22, 2017
ff05109
Merge pull request #216 from dgrove-oss/das-darwin-libdispatch-806-me…
das Feb 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "libpwq"]
path = libpwq
url = https://github.com/mheily/libpwq.git
[submodule "libkqueue"]
path = libkqueue
url = https://github.com/mheily/libkqueue.git
10 changes: 5 additions & 5 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ that includes libdispatch on Linux:
```
./swift/utils/build-toolchain local.swift
```

Note that adding libdispatch in build-presets.ini is for Linux only as Swift on macOS platforms uses the system installed libdispatch, so its not required.

### Building and installing on OS X

The following configure options may be of general interest:
Expand Down Expand Up @@ -151,9 +151,9 @@ Note that libdispatch development and testing is done only
on Ubuntu; currently supported versions are 14.04, 15.10 and 16.04.

1. The first thing to do is install required packages:

`sudo apt-get install autoconf libtool pkg-config clang systemtap-sdt-dev libbsd-dev`

Note: compiling libdispatch requires clang 3.8 or better and
the gold linker. If the default clang on your Ubuntu version is
too old, see http://apt.llvm.org/ to install a newer version.
Expand All @@ -168,7 +168,7 @@ to get the gold linker.
git submodule init
git submodule update
```

3. Build (as in the general instructions above)

```
Expand Down
5 changes: 0 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,13 @@ if BUILD_OWN_PTHREAD_WORKQUEUES
MAYBE_PTHREAD_WORKQUEUES = libpwq
endif

if BUILD_OWN_KQUEUES
MAYBE_KQUEUES = libkqueue
endif

if BUILD_TESTS
MAYBE_TESTS = tests
endif

SUBDIRS= \
dispatch \
$(MAYBE_PTHREAD_WORKQUEUES) \
$(MAYBE_KQUEUES) \
man \
os \
private \
Expand Down
45 changes: 45 additions & 0 deletions PATCHES
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,48 @@ github commits starting with 29bdc2f from
[4d58038] APPLIED rdar://27600964
[98d0a05] APPLIED rdar://27600964
[8976101] APPLIED rdar://27600964
[0d9ea5f] APPLIED rdar://28486911
[e7e9a32] APPLIED rdar://28486911
[44174d9] APPLIED rdar://28486911
[6402cb7] APPLIED rdar://28486911
[e2d5eb5] APPLIED rdar://28486911
[758bb7f] APPLIED rdar://28486911
[4c588e9] APPLIED rdar://28486911
[1300d06] APPLIED rdar://28486911
[ae1f7e8] APPLIED rdar://28486911
[40a9bfb] APPLIED rdar://28486911
[6366081] APPLIED rdar://28486911
[81d1d0c] APPLIED rdar://28486911
[5526122] APPLIED rdar://28486911
[1a7ff3f] APPLIED rdar://28486911
[e905735] APPLIED rdar://28486911
[7fe8323] APPLIED rdar://28486911
[6249878] APPLIED rdar://28486911
[20792fe] APPLIED rdar://28486911
[3639fbe] APPLIED rdar://28486911
[bda3baf] APPLIED rdar://28486911
[8803d07] APPLIED rdar://28486911
[d04a0df] APPLIED rdar://28486911
[69d2a6a] APPLIED rdar://28486911
[367bd95] APPLIED rdar://28486911
[152985f] APPLIED rdar://28486911
[ba7802e] APPLIED rdar://28486911
[92773e0] APPLIED rdar://30568673
[548a1b9] APPLIED rdar://30568673
[b628e5c] APPLIED rdar://30568673
[a055ddb] APPLIED rdar://30568673
[012f48b] APPLIED rdar://30568673
[353adba] APPLIED rdar://30568673
[eb730eb] APPLIED rdar://30568673
[ac16fbb] APPLIED rdar://30568673
[967876e] APPLIED rdar://30568673
[44c2291] APPLIED rdar://30568673
[ceb1fac] APPLIED rdar://30568673
[c95febb] APPLIED rdar://30568673
[b6e9cf4] APPLIED rdar://30568673
[e199473] APPLIED rdar://30568673
[3767ac7] APPLIED rdar://30568673
[10eb0e4] APPLIED rdar://30568673
[787dd92] APPLIED rdar://30568673
[ba4cac5] APPLIED rdar://30568673
[7974138] APPLIED rdar://30568673
19 changes: 19 additions & 0 deletions config/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@
you don't. */
#define HAVE_DECL_CLOCK_MONOTONIC 0

/* Define to 1 if you have the declaration of `CLOCK_REALTIME', and to 0 if
you don't. */
#define CLOCK_REALTIME 0

/* Define to 1 if you have the declaration of `CLOCK_UPTIME', and to 0 if you
don't. */
#define HAVE_DECL_CLOCK_UPTIME 0

/* Define to 1 if you have the declaration of `HAVE_DECL_CLOCK_UPTIME_FAST',
and to 0 if you don't. */
#define HAVE_DECL_CLOCK_UPTIME_FAST 0

/* Define to 1 if you have the declaration of `FD_COPY', and to 0 if you
don't. */
#define HAVE_DECL_FD_COPY 1
Expand Down Expand Up @@ -57,6 +65,14 @@
you don't. */
#define HAVE_DECL_VQ_QUOTA 1

/* Define to 1 if you have the declaration of `VQ_NEARLOWDISK', and to 0 if
you don't. */
#define HAVE_DECL_VQ_NEARLOWDISK 1

/* Define to 1 if you have the declaration of `VQ_DESIRED_DISK', and to 0 if
you don't. */
#define HAVE_DECL_VQ_DESIRED_DISK 1

/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1

Expand Down Expand Up @@ -87,6 +103,9 @@
/* Define to 1 if you have the `mach_absolute_time' function. */
#define HAVE_MACH_ABSOLUTE_TIME 1

/* Define to 1 if you have the `mach_approximate_time' function. */
#define HAVE_MACH_APPROXIMATE_TIME 1

/* Define to 1 if you have the `mach_port_construct' function. */
#define HAVE_MACH_PORT_CONSTRUCT 1

Expand Down
19 changes: 3 additions & 16 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -295,19 +295,6 @@ esac
AC_SEARCH_LIBS(clock_gettime, rt)
AC_SEARCH_LIBS(pthread_create, pthread)

AS_IF([test -f $srcdir/libkqueue/configure.ac],
[AC_DEFINE(BUILD_OWN_KQUEUES, 1, [Define if building libkqueue from source])
ac_configure_args="--disable-libkqueue-install $ac_configure_args"
AC_CONFIG_SUBDIRS([libkqueue])
build_own_kqueues=true],
[build_own_kqueues=false
AC_CHECK_HEADER(sys/event.h, [],
[PKG_CHECK_MODULES(KQUEUE, libkqueue)]
)
]
)
AM_CONDITIONAL(BUILD_OWN_KQUEUES, $build_own_kqueues)

AC_CHECK_FUNCS([strlcpy getprogname], [],
[PKG_CHECK_MODULES(BSD_OVERLAY, libbsd-overlay,[
AC_DEFINE(HAVE_STRLCPY, 1, [])
Expand Down Expand Up @@ -423,15 +410,15 @@ AC_CHECK_FUNCS([mach_port_construct])
#
# Find functions and declarations we care about.
#
AC_CHECK_DECLS([CLOCK_UPTIME, CLOCK_MONOTONIC], [], [],
AC_CHECK_DECLS([CLOCK_UPTIME, CLOCK_MONOTONIC, CLOCK_REALTIME, CLOCK_UPTIME_FAST], [], [],
[[#include <time.h>]])
AC_CHECK_DECLS([NOTE_NONE, NOTE_REAP, NOTE_REVOKE, NOTE_SIGNAL, NOTE_LOWAT], [], [],
[[#include <sys/event.h>]])
AC_CHECK_DECLS([FD_COPY], [], [], [[#include <sys/select.h>]])
AC_CHECK_DECLS([SIGEMT], [], [], [[#include <signal.h>]])
AC_CHECK_DECLS([VQ_UPDATE, VQ_VERYLOWDISK, VQ_QUOTA], [], [], [[#include <sys/mount.h>]])
AC_CHECK_DECLS([VQ_UPDATE, VQ_VERYLOWDISK, VQ_QUOTA, VQ_NEARLOWDISK, VQ_DESIRED_DISK], [], [], [[#include <sys/mount.h>]])
AC_CHECK_DECLS([program_invocation_short_name], [], [], [[#include <errno.h>]])
AC_CHECK_FUNCS([pthread_key_init_np pthread_main_np mach_absolute_time malloc_create_zone sysconf])
AC_CHECK_FUNCS([pthread_key_init_np pthread_main_np mach_absolute_time mach_approximate_time malloc_create_zone sysconf])

AC_CHECK_DECLS([POSIX_SPAWN_START_SUSPENDED],
[have_posix_spawn_start_suspended=true], [have_posix_spawn_start_suspended=false],
Expand Down
17 changes: 13 additions & 4 deletions dispatch/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,14 @@
#endif

#if __has_feature(enumerator_attributes)
#define DISPATCH_ENUM_AVAILABLE_STARTING __OSX_AVAILABLE_STARTING
#define DISPATCH_ENUM_AVAILABLE(os, version) __##os##_AVAILABLE(version)
#define DISPATCH_ENUM_API_AVAILABLE(...) API_AVAILABLE(__VA_ARGS__)
#define DISPATCH_ENUM_API_DEPRECATED(...) API_DEPRECATED(__VA_ARGS__)
#define DISPATCH_ENUM_API_DEPRECATED_WITH_REPLACEMENT(...) \
API_DEPRECATED_WITH_REPLACEMENT(__VA_ARGS__)
#else
#define DISPATCH_ENUM_AVAILABLE_STARTING(...)
#define DISPATCH_ENUM_AVAILABLE(...)
#define DISPATCH_ENUM_API_AVAILABLE(...)
#define DISPATCH_ENUM_API_DEPRECATED(...)
#define DISPATCH_ENUM_API_DEPRECATED_WITH_REPLACEMENT(...)
#endif

#if defined(SWIFT_SDK_OVERLAY_DISPATCH_EPOCH) && \
Expand Down Expand Up @@ -243,6 +246,12 @@
#define DISPATCH_SWIFT_NAME(_name)
#endif

#ifndef __cplusplus
#define DISPATCH_TRANSPARENT_UNION __attribute__((__transparent_union__))
#else
#define DISPATCH_TRANSPARENT_UNION
#endif

typedef void (*dispatch_function_t)(void *_Nullable);

#endif
26 changes: 13 additions & 13 deletions dispatch/block.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@ __BEGIN_DECLS
*/
DISPATCH_ENUM(dispatch_block_flags, unsigned long,
DISPATCH_BLOCK_BARRIER
DISPATCH_ENUM_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0) = 0x1,
DISPATCH_ENUM_API_AVAILABLE(macos(10.10), ios(8.0)) = 0x1,
DISPATCH_BLOCK_DETACHED
DISPATCH_ENUM_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0) = 0x2,
DISPATCH_ENUM_API_AVAILABLE(macos(10.10), ios(8.0)) = 0x2,
DISPATCH_BLOCK_ASSIGN_CURRENT
DISPATCH_ENUM_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0) = 0x4,
DISPATCH_ENUM_API_AVAILABLE(macos(10.10), ios(8.0)) = 0x4,
DISPATCH_BLOCK_NO_QOS_CLASS
DISPATCH_ENUM_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0) = 0x8,
DISPATCH_ENUM_API_AVAILABLE(macos(10.10), ios(8.0)) = 0x8,
DISPATCH_BLOCK_INHERIT_QOS_CLASS
DISPATCH_ENUM_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0) = 0x10,
DISPATCH_ENUM_API_AVAILABLE(macos(10.10), ios(8.0)) = 0x10,
DISPATCH_BLOCK_ENFORCE_QOS_CLASS
DISPATCH_ENUM_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0) = 0x20,
DISPATCH_ENUM_API_AVAILABLE(macos(10.10), ios(8.0)) = 0x20,
);

/*!
Expand Down Expand Up @@ -164,7 +164,7 @@ DISPATCH_ENUM(dispatch_block_flags, unsigned long,
* When not building with Objective-C ARC, must be released with a -[release]
* message or the Block_release() function.
*/
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0)
API_AVAILABLE(macos(10.10), ios(8.0))
DISPATCH_EXPORT DISPATCH_NONNULL2 DISPATCH_RETURNS_RETAINED_BLOCK
DISPATCH_WARN_RESULT DISPATCH_NOTHROW
dispatch_block_t
Expand Down Expand Up @@ -236,7 +236,7 @@ dispatch_block_create(dispatch_block_flags_t flags, dispatch_block_t block);
* When not building with Objective-C ARC, must be released with a -[release]
* message or the Block_release() function.
*/
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0)
API_AVAILABLE(macos(10.10), ios(8.0))
DISPATCH_EXPORT DISPATCH_NONNULL4 DISPATCH_RETURNS_RETAINED_BLOCK
DISPATCH_WARN_RESULT DISPATCH_NOTHROW
dispatch_block_t
Expand Down Expand Up @@ -269,7 +269,7 @@ dispatch_block_create_with_qos_class(dispatch_block_flags_t flags,
* @param block
* The block to create the temporary block object from.
*/
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0)
API_AVAILABLE(macos(10.10), ios(8.0))
DISPATCH_EXPORT DISPATCH_NONNULL2 DISPATCH_NOTHROW
void
dispatch_block_perform(dispatch_block_flags_t flags,
Expand Down Expand Up @@ -320,7 +320,7 @@ dispatch_block_perform(dispatch_block_flags_t flags,
* Returns zero on success (the dispatch block object completed within the
* specified timeout) or non-zero on error (i.e. timed out).
*/
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0)
API_AVAILABLE(macos(10.10), ios(8.0))
DISPATCH_EXPORT DISPATCH_NONNULL1 DISPATCH_NOTHROW
long
dispatch_block_wait(dispatch_block_t block, dispatch_time_t timeout);
Expand Down Expand Up @@ -361,7 +361,7 @@ dispatch_block_wait(dispatch_block_t block, dispatch_time_t timeout);
* @param notification_block
* The notification block to submit when the observed block object completes.
*/
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0)
API_AVAILABLE(macos(10.10), ios(8.0))
DISPATCH_EXPORT DISPATCH_NONNULL_ALL DISPATCH_NOTHROW
void
dispatch_block_notify(dispatch_block_t block, dispatch_queue_t queue,
Expand Down Expand Up @@ -393,7 +393,7 @@ dispatch_block_notify(dispatch_block_t block, dispatch_queue_t queue,
* The result of passing NULL or a block object not returned by one of the
* dispatch_block_create* functions is undefined.
*/
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0)
API_AVAILABLE(macos(10.10), ios(8.0))
DISPATCH_EXPORT DISPATCH_NONNULL_ALL DISPATCH_NOTHROW
void
dispatch_block_cancel(dispatch_block_t block);
Expand All @@ -412,7 +412,7 @@ dispatch_block_cancel(dispatch_block_t block);
* @result
* Non-zero if canceled and zero if not canceled.
*/
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0)
API_AVAILABLE(macos(10.10), ios(8.0))
DISPATCH_EXPORT DISPATCH_NONNULL_ALL DISPATCH_WARN_RESULT DISPATCH_PURE
DISPATCH_NOTHROW
long
Expand Down
Loading