Contents

CFRunLoopRemoveSource(_:_:_:)

Removes a CFRunLoopSource object from a run loop mode.

Declaration

func CFRunLoopRemoveSource(_ rl: CFRunLoop!, _ source: CFRunLoopSource!, _ mode: CFRunLoopMode!)

Parameters

  • rl:

    The run loop to modify.

  • source:

    The run loop source to remove.

  • mode:

    The run loop mode of rl from which to remove source. Use the constant Commonmodes to remove source from the set of objects monitored by all the common modes.

Discussion

If source is a version 0 source, this function calls the cancel callback function specified in the context structure for source. See CFRunLoopSourceContext and CFRunLoopSourceContext1for more details.

If rl does not contain source in mode, this function does nothing.

See Also

Managing Sources