ThreadOnce.hpp File Reference

#include "blocxx/BLOCXX_config.h"
#include "blocxx/Assertion.hpp"
#include <pthread.h>
#include <csignal>
#include <cassert>
#include "blocxx/MemoryBarrier.hpp"

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE

Classes

struct  BLOCXX_NAMESPACE::OnceFlag
class  BLOCXX_NAMESPACE::CallOnce_pthread_MutexLock

Defines

#define BLOCXX_ONCE_INIT   {0, PTHREAD_MUTEX_INITIALIZER}

Functions

template<typename FuncT>
void BLOCXX_NAMESPACE::callOnce (OnceFlag &flag, FuncT F)
 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   {0, PTHREAD_MUTEX_INITIALIZER}


Generated on Wed Feb 25 19:05:01 2009 for blocxx by  doxygen 1.5.6