Function

CFRunLoopContainsTimer

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

Declaration

Boolean CFRunLoopContainsTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFRunLoopMode mode);

Parameters

rl

The run loop to examine.

timer

The run loop timer for which to search.

mode

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

Return Value

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

Discussion

If timer 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 Timers

CFRunLoopAddTimer

Adds a CFRunLoopTimer object to a run loop mode.

CFRunLoopGetNextTimerFireDate

Returns the time at which the next timer will fire.

CFRunLoopRemoveTimer

Removes a CFRunLoopTimer object from a run loop mode.