Adds a CFRunLoopSource object to a run loop mode.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The run loop to modify.
The run loop source to add. The source is retained by the run loop.
The run loop mode to which to add
source. Use the constant
CFRun Loop Common Modes
sourceto the set of objects monitored by all the common modes.
source is a version 0 source, this function calls the
schedule callback function specified in the context structure for
CFRun for more details.
A run loop source can be registered in multiple run loops and run loop modes at the same time. When the source is signaled, whichever run loop that happens to detect the signal first will fire the source.
rl already contains
mode, this function does nothing.