ThreadOnce.hpp File Reference

#include "blocxx/BLOCXX_config.h"
#include <pthread.h>

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE

Defines

#define BLOCXX_ONCE_INIT   PTHREAD_ONCE_INIT

Typedefs

typedef pthread_once_t BLOCXX_NAMESPACE::OnceFlag

Functions

void BLOCXX_NAMESPACE::callOnce (OnceFlag &flag, void(*func)())
 The first time callOnce is called with a given onceFlag argument, it calls func with no argument and changes the value of flag to indicate that func has been run.


Define Documentation

#define BLOCXX_ONCE_INIT   PTHREAD_ONCE_INIT
 

Definition at line 50 of file ThreadOnce.hpp.


Generated on Fri Jun 16 15:39:10 2006 for blocxx by  doxygen 1.4.6