31 #include <casacore/casa/aips.h> 103 { itsMutexRef.lock(); }
107 { itsMutexRef.unlock(); }
172 {
if (itsDoExec) doExec(); }
void InitFunc(void *)
Define the initialization function to call.
LatticeExprNode arg(const LatticeExprNode &expr)
void unlock()
Unlock the mutex.
Type
Define the type of mutex.
~Mutex()
Destroy the mutex.
~ScopedMutexLock()
The destructor automatically unlocks the mutex.
void lock()
Set a lock on the mutex.
Thread-safe initialization of global variables.
ScopedMutexLock(Mutex &mutex)
Create a lock on the mutex.
bool Bool
Define the standard types used by Casacore.
Mutex & operator=(const Mutex &)
Forbid assignment.
bool trylock()
Try to lock the mutex.
void exec()
Execute the initialization function if not done yet.
Wrapper around a pthreads mutex.
Exception-safe lock/unlock of a mutex.
Mutex & mutex()
Get the mutex (to make it possible to lock for other purposes).
this file contains all the compiler specific defines
Mutex(Type type=Auto)
Create the mutex.