Macro

DISPATCH_SOURCE_TYPE_MEMORYPRESSURE

A type of dispatch source for monitoring memory pressure events.

Declaration

#define DISPATCH_SOURCE_TYPE_MEMORYPRESSURE

Discussion

A dispatch source that monitors the memory pressure of the system. The handle is unused and you should pass 0 for that parameter. The mask is a mask of desired events from Dispatch Source Memory Pressure Event Flags.

See Also

Dispatch Source Types

DISPATCH_SOURCE_TYPE_TIMER

A type of dispatch source for monitoring a timer.

DISPATCH_SOURCE_TYPE_READ

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

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_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