Macro

DISPATCH_SOURCE_TYPE_READ

A type of dispatch source for monitoring read operations on a file system object.

Declaration

#define DISPATCH_SOURCE_TYPE_READ

Discussion

A dispatch source that monitors a file descriptor for pending bytes available to be read. The handle is a file descriptor (int). The mask is unused (pass zero for now).

See Also

Dispatch Source Types

DISPATCH_SOURCE_TYPE_TIMER

A type of dispatch source for monitoring a timer.

DISPATCH_SOURCE_TYPE_WRITE

A type of dispatch source for monitoring write operations on a file system object.

DISPATCH_SOURCE_TYPE_VNODE

A type of dispatch source for monitoring changes to a file system object.

DISPATCH_SOURCE_TYPE_SIGNAL

A type of dispatch source for monitoring signals.

DISPATCH_SOURCE_TYPE_PROC

A type of dispatch source for monitoring a process.

DISPATCH_SOURCE_TYPE_MEMORYPRESSURE

A type of dispatch source for monitoring memory pressure events.

DISPATCH_SOURCE_TYPE_MACH_SEND

A type of dispatch source for monitoring a mach send port.

DISPATCH_SOURCE_TYPE_MACH_RECV

A type of dispatch source for monitoring a mach receive port.

DISPATCH_SOURCE_TYPE_DATA_ADD

A type of dispatch source for monitoring custom events involving the coalescing of data with an AND operator.

DISPATCH_SOURCE_TYPE_DATA_OR

A type of dispatch source for monitoring custom events involving the coalescing of data with an OR operator.

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