39#include "../mutexInterface.hpp"
58 omp_init_lock(&mutex);
63 omp_destroy_lock(&mutex);
73 omp_unset_lock(&mutex);
#define CODI_INLINE
See codi::Config::ForcedInlines.
Definition: config.h:457
CoDiPack - Code Differentiation Package.
Definition: codi.hpp:90
Abstracts a mutex.
Definition: mutexInterface.hpp:47
Mutex implementation for OpenMP.
Definition: openMPMutex.hpp:47
void finalize()
Finalize the mutex.
Definition: openMPMutex.hpp:62
void unlock()
Unlock the mutex.
Definition: openMPMutex.hpp:72
void initialize()
Initialize the mutex.
Definition: openMPMutex.hpp:57
~OpenMPMutex()
Destructor.
Definition: openMPMutex.hpp:54
OpenMPMutex()
Constructor.
Definition: openMPMutex.hpp:52
void lock()
Lock the mutex.
Definition: openMPMutex.hpp:67