dispatch_function_t
The prototype of functions submitted to dispatch queues.
Declaration
typedef void (*)(void *) dispatch_function_t;Discussion
Functions that take a dispatch_function_t type as a parameter also take a pointer to contextual data that you provide. When your dispatch function is called, the pointer to that contextual data is passed as the parameter to the function. The pointer to the contextual data is passed unmodified to your function and it is your responsibility to ensure that the pointer is valid.