Contents

dispatch_source_get_data

Returns pending data for the dispatch source.

Declaration

extern uintptr_t dispatch_source_get_data(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:

Discussion

Call this function from within the event handler block. The result of calling this function outside of the event handler callback is undefined.

See Also

Getting Dispatch Source Attributes