Enumeration

CFRunLoopActivity

Run loop activity stages in which run loop observers can be scheduled.

Declaration

typedef enum CFRunLoopActivity : CFOptionFlags {
    ...
} CFRunLoopActivity;

Overview

The run loop stages in which an observer is scheduled are selected when the observer is created with CFRunLoopObserverCreate.

Topics

Constants

kCFRunLoopEntry

The entrance of the run loop, before entering the event processing loop. This activity occurs once for each call to CFRunLoopRun and CFRunLoopRunInMode.

kCFRunLoopBeforeTimers

Inside the event processing loop before any timers are processed.

kCFRunLoopBeforeSources

Inside the event processing loop before any sources are processed.

kCFRunLoopAfterWaiting

Inside the event processing loop after the run loop wakes up, but before processing the event that woke it up. This activity occurs only if the run loop did in fact go to sleep during the current loop.

kCFRunLoopExit

The exit of the run loop, after exiting the event processing loop. This activity occurs once for each call to CFRunLoopRun and CFRunLoopRunInMode.

kCFRunLoopAllActivities

A combination of all the preceding stages.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software