Function

dispatch_sync_f

Submits an application-defined function for synchronous execution on a dispatch queue.

Declaration

void dispatch_sync_f(dispatch_queue_t queue, void *context, dispatch_function_t work);

Parameters

queue

The queue on which to submit the function. This parameter cannot be NULL.

context

The application-defined context parameter to pass to the function.

work

The application-defined function to invoke on the target queue. The first parameter passed to this function is the value in the context parameter. This parameter cannot be NULL.

See Also

Executing Tasks Synchronously

dispatch_sync

Submits a block object for execution and returns after that block finishes executing.