We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

dispatch_barrier_sync

Description

Synchronously adds a barrier task to the target queue. It is the sync version of dispatch_barrier_async.

Prototype

void dispatch_barrier_sync(dispatch_queue_t queue, dispatch_block_t block);

Parameters

Expand

Parameter

Type

Description

queue

dispatch_queue_t

Target queue.

block

dispatch_block_t

Task to add.

Returns

Expand

Type

Description

void

-

Search
Enter a keyword.