Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
useMutex.C File Reference
#include <string>
#include <useMutex.H>
#include <ah-errors.H>
Include dependency graph for useMutex.C:

Go to the source code of this file.

Functions

void init_mutex (pthread_mutex_t *m)
 Initialize a pthread mutex (pointer version)
 
void init_mutex (pthread_mutex_t &m)
 Initialize a pthread mutex (reference version)
 
void destroy_mutex (pthread_mutex_t *m)
 Destroy a pthread mutex (pointer version)
 
void destroy_mutex (pthread_mutex_t &m)
 Destroy a pthread mutex (reference version)
 

Function Documentation

◆ destroy_mutex() [1/2]

void destroy_mutex ( pthread_mutex_t &  m)

Destroy a pthread mutex (reference version)

Definition at line 62 of file useMutex.C.

References destroy_mutex().

◆ destroy_mutex() [2/2]

void destroy_mutex ( pthread_mutex_t *  m)

Destroy a pthread mutex (pointer version)

Definition at line 54 of file useMutex.C.

References ah_domain_error_if, Aleph::maps(), and Aleph::to_string().

Referenced by Log_Manager::~Log_Manager(), and destroy_mutex().

◆ init_mutex() [1/2]

void init_mutex ( pthread_mutex_t &  m)

Initialize a pthread mutex (reference version)

Definition at line 49 of file useMutex.C.

References init_mutex().

◆ init_mutex() [2/2]

void init_mutex ( pthread_mutex_t *  m)

Initialize a pthread mutex (pointer version)

Definition at line 41 of file useMutex.C.

References ah_domain_error_if, Aleph::maps(), and Aleph::to_string().

Referenced by Log_Manager::Log_Manager(), and init_mutex().