Go to the source code of this file.
Typedef Documentation
Function Documentation
DISPATCH_EXPORT void dispatch_once |
( |
dispatch_once_t * |
predicate, |
|
|
dispatch_block_t |
block |
|
) |
| |
dispatch_once
Execute a block once and only once.
- Parameters:
-
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.
DISPATCH_EXPORT void dispatch_once_f |
( |
dispatch_once_t * |
predicate, |
|
|
void * |
context, |
|
|
void(*)(void *) |
function |
|
) |
| |