GEOS
Public Member Functions | List of all members
geos::MultiMutexesLock< Mutexes > Class Template Reference

Class to handle locks using 2 mutexes. More...

#include <MultiMutexesLock.hpp>

Public Member Functions

 MultiMutexesLock (Mutexes &... mutexes)
 Construct a multi mutexes lock and lock the mutexes. More...
 
 ~MultiMutexesLock ()
 Unlock the mutexes and destroy the locks.
 
void lock ()
 Lock the two mutexes using std::lock is not already owning lock.
 
void unlock ()
 Unlock the two mutexes is owning them.
 

Detailed Description

template<typename ... Mutexes>
class geos::MultiMutexesLock< Mutexes >

Class to handle locks using 2 mutexes.

Definition at line 31 of file MultiMutexesLock.hpp.

Constructor & Destructor Documentation

◆ MultiMutexesLock()

template<typename ... Mutexes>
geos::MultiMutexesLock< Mutexes >::MultiMutexesLock ( Mutexes &...  mutexes)
inline

Construct a multi mutexes lock and lock the mutexes.

Parameters
mutexesThe mutexes associated with the lock.

Definition at line 38 of file MultiMutexesLock.hpp.


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