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.