Function

CFRunLoopContainsSource

Returns a Boolean value that indicates whether a run loop mode contains a particular CFRunLoopSource object.

Declaration

Boolean CFRunLoopContainsSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFRunLoopMode mode);

Parameters

rl

The run loop to examine.

source

The run loop source for which to search.

mode

The run loop mode of rl in which to search. Use the constant kCFRunLoopCommonModes to search for source in the set of objects monitored by all the common modes.

Return Value

true if source is in mode mode of the run loop rl, otherwise false.

Discussion

If source was added to kCFRunLoopCommonModes, this function returns true if mode is either kCFRunLoopCommonModes or any of the modes that has been added to the set of common modes.

See Also

Managing Sources

CFRunLoopAddSource

Adds a CFRunLoopSource object to a run loop mode.

CFRunLoopRemoveSource

Removes a CFRunLoopSource object from a run loop mode.