Type Alias

dispatch_once_t

A predicate for use with the dispatch_once function.

Declaration

typedef intptr_t dispatch_once_t;

Discussion

Variables of this type must have global or static scope. The result of using this type with automatic or dynamic allocation is undefined. See dispatch_get_global_queue for details.

See Also

Executing a Task Only Once

dispatch_once

Executes a block object only once for the lifetime of an application.

dispatch_once_f

Executes an application-defined function only once for the lifetime of an application.