Flags to pass to the dispatch
and dispatch
functions.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Dispatch
Declaration
typedef enum : unsigned long {
...
} dispatch_block_flags_t;
Flags to pass to the dispatch
and dispatch
functions.
SDKs
Framework
typedef enum : unsigned long {
...
} dispatch_block_flags_t;
DISPATCH _BLOCK _ASSIGN _CURRENT
Set the attributes of the work item to match the attributes of the current execution context.
DISPATCH _BLOCK _BARRIER
Cause the work item to act as a barrier block when submitted to a concurrent queue.
DISPATCH _BLOCK _DETACHED
Disassociate the work item's attributes from the current execution context.
DISPATCH _BLOCK _ENFORCE _QOS _CLASS
Prefer the quality-of-service class associated with the block.
DISPATCH _BLOCK _INHERIT _QOS _CLASS
Prefer the quality-of-service class associated with the current execution context.
DISPATCH _BLOCK _NO _QOS _CLASS
Execute the work item without assigning a quality-of-service class.
dispatch _block _create
Creates a new dispatch block on the heap using an existing block and the given flags.
dispatch _block _create _with _qos _class
Creates a new dispatch block from an existing block and the given flags, and assigns it the specified quality-of-service class and relative priority.
dispatch _block _t
The prototype of blocks submitted to dispatch queues, which take no arguments and have no return value.