Structure

CFRunLoopSourceContext

A structure that contains program-defined data and callbacks with which you can configure a version 0 CFRunLoopSource’s behavior.

Declaration

typedef struct {
    ...
} CFRunLoopSourceContext;

Topics

Instance Properties

cancel

A cancel callback for the run loop source. This callback is called when the source is removed from a run loop mode. Can be NULL.

copyDescription

A copy description callback for your program-defined info pointer. Can be NULL.

equal

An equality test callback for your program-defined info pointer. Can be NULL.

hash

A hash calculation callback for your program-defined info pointer. Can be NULL.

info

An arbitrary pointer to program-defined data, which can be associated with the CFRunLoopSource at creation time. This pointer is passed to all the callbacks defined in the context.

perform

A perform callback for the run loop source. This callback is called when the source has fired.

release

A release callback for your program-defined info pointer. Can be NULL.

retain

A retain callback for your program-defined info pointer. Can be NULL.

schedule

A scheduling callback for the run loop source. This callback is called when the source is added to a run loop mode. Can be NULL.

version

Version number of the structure. Must be 0.

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