Structure

DispatchSource.MachSendEvent

Mach-related events.

Declaration

struct MachSendEvent

Topics

Mach Event Flags

static let dead: DispatchSource.MachSendEvent

The receive right corresponding to the given send right was destroyed.

Initializers

init()

Creates an empty option set.

init(arrayLiteral: DispatchSource.MachSendEvent...)

Creates a set containing the elements of the given array literal.

init<S>(S)

Creates a new set from a finite sequence of items.

Instance Properties

var isEmpty: Bool

A Boolean value that indicates whether the set has no elements.

Instance Methods

func contains(DispatchSource.MachSendEvent) -> Bool

Returns a Boolean value that indicates whether a given element is a member of the option set.

func formIntersection(DispatchSource.MachSendEvent)

Removes all elements of this option set that are not also present in the given set.

func formSymmetricDifference(DispatchSource.MachSendEvent)

Replaces this set with a new set containing all elements contained in either this set or the given set, but not in both.

func formUnion(DispatchSource.MachSendEvent)

Inserts the elements of another set into this option set.

func intersection(DispatchSource.MachSendEvent) -> DispatchSource.MachSendEvent

Returns a new option set with only the elements contained in both this set and the given set.

func isDisjoint(with: DispatchSource.MachSendEvent) -> Bool

Returns a Boolean value that indicates whether the set has no members in common with the given set.

func isStrictSubset(of: DispatchSource.MachSendEvent) -> Bool

Returns a Boolean value that indicates whether this set is a strict subset of the given set.

func isStrictSuperset(of: DispatchSource.MachSendEvent) -> Bool

Returns a Boolean value that indicates whether this set is a strict superset of the given set.

func isSubset(of: DispatchSource.MachSendEvent) -> Bool

Returns a Boolean value that indicates whether the set is a subset of another set.

func isSuperset(of: DispatchSource.MachSendEvent) -> Bool

Returns a Boolean value that indicates whether the set is a superset of the given set.

func remove(DispatchSource.MachSendEvent) -> DispatchSource.MachSendEvent?

Removes the given element and all elements subsumed by it.

func subtract(DispatchSource.MachSendEvent)

Removes the elements of the given set from this set.

func subtracting(DispatchSource.MachSendEvent) -> DispatchSource.MachSendEvent

Returns a new set containing the elements of this set that do not occur in the given set.

func symmetricDifference(DispatchSource.MachSendEvent) -> DispatchSource.MachSendEvent

Returns a new option set with the elements contained in this set or in the given set, but not in both.

func union(DispatchSource.MachSendEvent) -> DispatchSource.MachSendEvent

Returns a new option set of the elements contained in this set, in the given set, or in both.

Operator Functions

static func != (DispatchSource.MachSendEvent, DispatchSource.MachSendEvent) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Relationships

See Also

Creating a Mach Port Source

class func makeMachReceiveSource(port: mach_port_t, queue: DispatchQueue?) -> DispatchSourceMachReceive

Creates a new dispatch source object for monitoring a Mach port for pending messages.

protocol DispatchSourceMachReceive

A dispatch source that monitors a Mach port for pending messages.

protocol DispatchSourceMachSend

A dispatch source that monitors a Mach port for dead name notifications, indicating that a send right no longer has a corresponding receive right.