Type Alias

CFMachPortInvalidationCallBack

Callback invoked when a CFMachPort object is invalidated.

Declaration

typealias CFMachPortInvalidationCallBack = (CFMachPort?, UnsafeMutableRawPointer?) -> Void

Parameters

port

The CFMachPort object that has been invalidated.

info

The info member of the CFMachPortContext structure used when creating port.

Discussion

Your callback should free any resources allocated for port.

You specify this callback with CFMachPortSetInvalidationCallBack(_:_:).

See Also

Callbacks

typealias CFMachPortCallBack

Callback invoked to process a message received on a CFMachPort object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software