CFMessagePortSetInvalidationCallBack(_:_:)
Sets the callback function invoked when a CFMessagePort object is invalidated.
Declaration
func CFMessagePortSetInvalidationCallBack(_ ms: CFMessagePort!, _ callout: CFMessagePortInvalidationCallBack!)Parameters
- ms:
The message port to examine.
- callout:
The callback function to invoke when
msis invalidated. PassNULLto remove a callback.
Discussion
If ms is already invalid, callout is invoked immediately.