CoDiPack  2.2.0
A Code Differentiation Package
SciComp TU Kaiserslautern
Loading...
Searching...
No Matches
codi::Lock< T_Mutex > Struct Template Reference

RAII mutex locking. More...

#include <mutexInterface.hpp>

Public Types

using Mutex = T_Mutex
 See Lock.
 

Public Member Functions

 Lock (Mutex &mutex)
 
 ~Lock ()
 Destructor. Unlocks the mutex.
 

Detailed Description

template<typename T_Mutex>
struct codi::Lock< T_Mutex >

RAII mutex locking.

Template Parameters
T_MutexThe underlying mutex type.

Constructor & Destructor Documentation

◆ Lock()

template<typename T_Mutex >
codi::Lock< T_Mutex >::Lock ( Mutex & mutex)
inline

Constructor. Locks the mutex.

Parameters
mutexThe mutex to be locked.

The documentation for this struct was generated from the following file: