Enumeration

DispatchQueue.AutoreleaseFrequency

Constants indicating the frequency with which a dispatch queue autoreleases objects.

Declaration

enum AutoreleaseFrequency

Topics

Autorelease Frequencies

case inherit

The queue inherits its autorelease frequency from its target queue.

case workItem

The queue configures an autorelease pool before the execution of a block, and releases the objects in that pool after the block finishes executing.

case never

The queue does not set up an autorelease pool around executed blocks.

Instance Properties

See Also

Creating a Dispatch Queue

class var main: DispatchQueue

The dispatch queue associated with the main thread of the current process.

class func global(qos: DispatchQoS.QoSClass) -> DispatchQueue

Returns the global system queue with the specified quality-of-service class.

enum DispatchQoS.QoSClass

Quality-of-service classes that specify the priorities for executing tasks.

struct DispatchQueue.Attributes

Attributes that define the behavior of a dispatch queue.

class OS_dispatch_queue_main

A system-provided dispatch queue that schedules tasks for serial execution on the app's main thread.

class OS_dispatch_queue_global

A system-provided dispatch queue that schedules tasks for concurrent execution.

class OS_dispatch_queue_serial

A custom dispatch queue that schedules tasks for serial execution on an arbitrary thread.

class OS_dispatch_queue_concurrent

A custom dispatch queue that schedules tasks for concurrent execution.

typealias dispatch_queue_main_t

A dispatch queue that is bound to the app's main thread and executes tasks serially on that thread.

typealias dispatch_queue_global_t

A dispatch queue that executes tasks concurrently using threads from the global thread pool.

typealias dispatch_queue_serial_t

A dispatch queue that executes tasks serially in first-in, first-out (FIFO) order.

typealias dispatch_queue_concurrent_t

A dispatch queue that executes tasks concurrently and in any order, respecting any barriers that may be in place.