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
portis invalidated. PassNULLto remove a callback.
Discussion
If port is already invalid, callout is invoked immediately.