blocxx
Namespaces | Functions

ThreadOnce.hpp File Reference

#include "blocxx/BLOCXX_config.h"
#include "blocxx/Assertion.hpp"
#include "blocxx/Assertion.hpp"

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE
 

Taken from RFC 1321.


Functions

template<typename FuncT >
void BLOCXX_COMMON_API 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.