Go to the source code of this file.
Typedefs | |
typedef intptr_t | dispatch_once_t |
Functions | |
DISPATCH_EXPORT DISPATCH_NONNULL1 DISPATCH_NONNULL3 DISPATCH_NOTHROW void | dispatch_once_f (dispatch_once_t *predicate, void *context, void(*function)(void *)) |
typedef intptr_t dispatch_once_t |
DISPATCH_EXPORT DISPATCH_NONNULL1 DISPATCH_NONNULL3 DISPATCH_NOTHROW void dispatch_once_f | ( | dispatch_once_t * | predicate, |
void * | context, | ||
void(*)(void *) | function | ||
) |
dispatch_once
Execute a block once and only once.
predicate | A pointer to a dispatch_once_t that is used to test whether the block has completed or not. |
block | The block to execute once. |
Always call dispatch_once() before using or testing any variables that are initialized by the block.