|
casacore
|
CallOnce: func has one arg. More...
#include <Mutex.h>
Public Member Functions | |
| CallOnce () | |
| template<typename T > | |
| void | operator() (void(*fn)(T), T t) |
Private Member Functions | |
| CallOnce (const CallOnce &) | |
| Forbid copy constructor. More... | |
| CallOnce & | operator= (const CallOnce &) |
| Forbid assignment. More... | |
Private Attributes | |
| std::once_flag | itsFlag |
CallOnce: func has one arg.
One arg can also be used as an output or to refer to an object (more args).
|
inline |
Definition at line 254 of file Mutex.h.
References itsFlag, and casacore::True.
|
private |
Forbid copy constructor.
|
inline |
Definition at line 262 of file Mutex.h.
References casacore::False, and itsFlag.
|
private |
Definition at line 280 of file Mutex.h.
Referenced by CallOnce(), and operator()().
1.8.16