#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. |
|
Definition at line 50 of file ThreadOnce.hpp. |