Function

CFMachPortSetInvalidationCallBack(_:_:)

Sets the callback function invoked when a CFMachPort object is invalidated.

Declaration

func CFMachPortSetInvalidationCallBack(_ port: CFMachPort!, _ callout: CFMachPortInvalidationCallBack!)

Parameters

port

The CFMachPort object to modify.

callout

The callback function to invoke when port is invalidated. Pass NULL to remove a callback.

Discussion

If port is already invalid, callout is invoked immediately.

See Also

Configuring a CFMachPort Object

func CFMachPortInvalidate(CFMachPort!)

Invalidates a CFMachPort object, stopping it from receiving any more messages.

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