Creates a CFRunLoopSource object for a CFMachPort object.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new object. Pass
kto use the current default allocator.
The Mach port for which to create a CFRunLoopSource object.
A priority index indicating the order in which run loop sources are processed.
orderis currently ignored by CFMachPort run loop sources. Pass
0for this value.
The new CFRunLoopSource object for
port. 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