Creates a CFRunLoopSource 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
NULLor kCFAllocatorDefault to use the current default allocator.
A priority index indicating the order in which run loop sources are processed. When multiple run loop sources are firing in a single pass through the run loop, the sources are processed in increasing order of this parameter. If the run loop is set to process only one source per loop, only the highest priority source, the one with the lowest
ordervalue, is processed. This value is ignored for version 1 sources. Pass 0 unless there is a reason to do otherwise.
A structure holding contextual information for the run loop source. The function copies the information out of the structure, so the memory pointed to by
contextdoes not need to persist beyond the function call.
The new CFRunLoopSource object. You are responsible for releasing this object.
The run loop source is not automatically added to a run loop. Ownership follows the The Create Rule.