Function

dispatch_source_get_mask

Returns the mask of events monitored by the dispatch source.

Declaration

unsigned long dispatch_source_get_mask(dispatch_source_t source);

Parameters

source

This parameter cannot be NULL.

Return Value

The return value should be interpreted according to the type of the dispatch source, and can be one of the following flag sets:

Discussion

The mask is a bitmask of relevant events being monitored by the dispatch event source. Any events that are not specified in the event mask are ignored and no event handler block is submitted for them.

For details, see the flag descriptions in Constants.

See Also

Getting Dispatch Source Attributes

dispatch_source_get_data

Returns pending data for the dispatch source.

dispatch_source_get_handle

Returns the underlying system handle associated with the specified dispatch source.

dispatch_source_merge_data

Merges data into a dispatch source and submits its event handler block to its target queue.

dispatch_source_proc_flags_t

Events related to a process.

dispatch_source_vnode_flags_t

Events involving a change to a file system object.