Creates a CFRunLoopSource object for a CFMessagePort object.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The message port for which to create a run loop source.
A priority index indicating the order in which run loop sources are processed.
orderis currently ignored by CFMessagePort object run loop sources. Pass
0for this value.
The new CFRunLoopSource object for
ms. Ownership follows the The Create Rule.
The run loop source is not automatically added to a run loop. To add the source to a run loop, use
This method is not available on iOS 7 and later—it will return
NULL and log a sandbox violation in
syslog. See Concurrency Programming Guide for possible replacement technologies.