KASKADE 7 development version
Public Member Functions | List of all members
Kaskade::Mutex Class Reference

A utility class implementing appropriate copy semantics for boost mutexes. More...

#include <threading.hh>

Detailed Description

A utility class implementing appropriate copy semantics for boost mutexes.

Todo:
: design appropriate semantics for move construction/assignment

Definition at line 771 of file threading.hh.

Public Member Functions

 Mutex ()=default
 Default constructor. More...
 
 Mutex (Mutex const &m)
 Copy constructor. More...
 
Mutexoperator= (Mutex const &m)
 Assignment. More...
 
boost::mutex & get ()
 provides access to the mutex to perform the locking. More...
 

Constructor & Destructor Documentation

◆ Mutex() [1/2]

Kaskade::Mutex::Mutex ( )
default

Default constructor.

The constructed object's mutex is unlocked.

◆ Mutex() [2/2]

Kaskade::Mutex::Mutex ( Mutex const &  m)
inline

Copy constructor.

The constructed object's mutex is unlocked, independently of the state of m.

Definition at line 786 of file threading.hh.

Member Function Documentation

◆ get()

boost::mutex & Kaskade::Mutex::get ( )
inline

provides access to the mutex to perform the locking.

Definition at line 798 of file threading.hh.

◆ operator=()

Mutex & Kaskade::Mutex::operator= ( Mutex const &  m)
inline

Assignment.

Our mutex doesn't change its state.

Definition at line 793 of file threading.hh.


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