26 #ifndef EWOMS_LOCKS_HH
27 #define EWOMS_LOCKS_HH
29 #if defined(_OPENMP) || DOXYGEN
40 void lock() { omp_set_lock(&lock_); }
41 void unlock() { omp_unset_lock(&lock_); }
OmpMutex & operator=(const OmpMutex &)
Definition: locks.hh:44
OmpMutex()
Definition: locks.hh:38
void unlock()
Definition: locks.hh:77
void lock()
Definition: locks.hh:40
void unlock()
Definition: locks.hh:41
void operator=(const ScopedLock &)=delete
This class implements an exception-safe scoped lock-keeper.
Definition: locks.hh:63
~ScopedLock()
Definition: locks.hh:71
~OmpMutex()
Definition: locks.hh:39
ScopedLock(OmpMutex &m)
Definition: locks.hh:66
Implements a shallow wrapper around the "raw" locks provided by OpenMP.
Definition: locks.hh:35
void lockAgain()
Definition: locks.hh:86
OmpMutex(const OmpMutex &)
Definition: locks.hh:43