Function

dispatch_get_context

Returns the application-defined context of an object.

Declaration

void * dispatch_get_context(dispatch_object_t object);

Parameters

object

This parameter cannot be NULL.

Return Value

The context of the object; can be NULL.

Discussion

Your application can associate custom context data with the object, to be used only by your application. Your application must allocate and deallocate the data as appropriate.

See Also

Updating Contextual Data

dispatch_set_context

Associates an application-defined context with the object.

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