dispatch_get_context
Returns the application-defined context of an object.
Declaration
extern 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.