libXDispatch 0.6
Typedefs | Functions
include/libdispatch/once.h File Reference

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 Documentation

typedef intptr_t dispatch_once_t

Function Documentation

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.

Parameters:
predicateA pointer to a dispatch_once_t that is used to test whether the block has completed or not.
blockThe block to execute once.

Always call dispatch_once() before using or testing any variables that are initialized by the block.


Generated on Wed Feb 22 2012 19:57:00 for libXDispatch by Doxygen 1.7.4
Content © 2011-2012 MLBA (about | privacy) – Design © 2010-2012 Emzeat. All Rights reserved.