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

Go to the source code of this file.

Typedefs

typedef long dispatch_once_t

Functions

DISPATCH_EXPORT void dispatch_once (dispatch_once_t *predicate, dispatch_block_t block)
DISPATCH_EXPORT void dispatch_once_f (dispatch_once_t *predicate, void *context, void(*function)(void *))

Typedef Documentation

typedef long dispatch_once_t

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:
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.

DISPATCH_EXPORT void dispatch_once_f ( dispatch_once_t predicate,
void *  context,
void(*)(void *)  function 
)

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