KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::Mutex Class Reference

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

#include <threading.hh>

Public Member Functions

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

Detailed Description

A utility class implementing appropriate copy semantics for boost mutexes.

Todo
: design appropriate semantics for move construction/assignment

Definition at line 784 of file threading.hh.

Constructor & Destructor Documentation

◆ Mutex() [1/2]

Kaskade::Mutex::Mutex ( )
default

Default constructor.

The constructed object's mutex is unlocked.

Referenced by Mutex(), and operator=().

◆ 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 799 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 811 of file threading.hh.

◆ operator=()

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

Assignment.

Our mutex doesn't change its state.

Definition at line 806 of file threading.hh.


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