votca 2024-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
votca::tools::Mutex Class Reference

#include <mutex.h>

Public Member Functions

 Mutex ()
 
 ~Mutex ()
 
void Lock ()
 
void Unlock ()
 

Private Attributes

pthread_mutex_t mutexVar_
 

Detailed Description

  \brief Convenient class for Mutexes

    Class allows to create, lock and unlock mutexes. Destroying is

handled by the destructor.

Definition at line 35 of file mutex.h.

Constructor & Destructor Documentation

◆ Mutex()

votca::tools::Mutex::Mutex ( )

Definition at line 24 of file mutex.cc.

◆ ~Mutex()

votca::tools::Mutex::~Mutex ( )

Definition at line 26 of file mutex.cc.

Member Function Documentation

◆ Lock()

void votca::tools::Mutex::Lock ( )

Definition at line 28 of file mutex.cc.

◆ Unlock()

void votca::tools::Mutex::Unlock ( )

Definition at line 30 of file mutex.cc.

Member Data Documentation

◆ mutexVar_

pthread_mutex_t votca::tools::Mutex::mutexVar_
private

Definition at line 44 of file mutex.h.


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