Function

CFRunLoopStop

Forces a CFRunLoop object to stop running.

Declaration

void CFRunLoopStop(CFRunLoopRef rl);

Parameters

rl

The run loop to stop.

Discussion

This function forces rl to stop running and return control to the function that called CFRunLoopRun or CFRunLoopRunInMode for the current run loop activation. If the run loop is nested with a callout from one activation starting another activation running, only the innermost activation is exited.

See Also

Starting and Stopping a Run Loop

CFRunLoopRun

Runs the current thread’s CFRunLoop object in its default mode indefinitely.

CFRunLoopRunInMode

Runs the current thread’s CFRunLoop object in a particular mode.

CFRunLoopWakeUp

Wakes a waiting CFRunLoop object.

CFRunLoopIsWaiting

Returns a Boolean value that indicates whether the run loop is waiting for an event.