目录

概述

API列表

API

描述

dispatch_async

提交一个任务,异步执行(调用者立即返回不等待任务执行完成)。

dispatch_async_f

dispatch_async的_f版本。

dispatch_sync

提交一个任务,同步执行(此函数当提交的任务执行完毕后才返回)。

dispatch_sync_f

dispatch_sync的_f版本。

dispatch_after

(异步地)提交一个任务到某个队列,在指定的时间执行。

dispatch_after_f

dispatch_after的_f版本。

dispatch_time

创建一个dispatch_time_t变量在multithread-lib中使用,表征一个绝对时间。

dispatch_walltime

类似dispatch_time,但是时间系统使用墙上时间(walltime)。

dispatch_once

(同步地)执行一个任务只一次。

dispatch_once_f

dispatch_once的_f版本。

dispatch_apply

(同步地)在指定队列重复执行多次某个任务。

dispatch_apply_f

dispatch_apply的_f版本。

dispatch_barrier_async

异步地提交一个barrier任务到目标队列上。

dispatch_barrier_async_f

dispatch_barrier_async的_f版本。

dispatch_barrier_sync

同步地提交一个barrier任务到目标队列上。

dispatch_barrier_sync_f

dispatch_barrier_sync的_f版本。