CFMessagePortInvalidationCallBack
Callback invoked when a CFMessagePort object is invalidated.
Declaration
typealias CFMessagePortInvalidationCallBack = (CFMessagePort?, UnsafeMutableRawPointer?) -> VoidParameters
- ms:
The message port that has been invalidated.
- info:
The
infomember of the Cfmessageportcontext structure that was used when creatingms, ifmsis a local port;NULLifmsis a remote port.
Discussion
Your callback should free any resources allocated for ms.
You specify this callback with CFMessagePortSetInvalidationCallBack(_:_:).