MPD: PosixMutex Class Reference

MPD 0.20.18

Public Member Functions | Friends
PosixMutex Class Reference

Low-level wrapper for a pthread_mutex_t. More...

`#include <PosixMutex.hxx>`

Inheritance diagram for PosixMutex:
[legend]

## Public Member Functions
| PosixMutex ()
| ~PosixMutex ()
| PosixMutex (const PosixMutex &other)=delete
PosixMutex & | operator= (const PosixMutex &other)=delete
void | lock ()
bool | try_lock ()
void | unlock ()

## Friends
class | PosixCond

## Detailed Description

Low-level wrapper for a pthread_mutex_t.

Definition at line 38 of file PosixMutex.hxx.

## Constructor & Destructor Documentation

## ◆ PosixMutex() [1/2]

PosixMutex::PosixMutex | ( |  | ) |
| inline

Definition at line 51 of file PosixMutex.hxx.

## ◆ ~PosixMutex()

PosixMutex::~PosixMutex | ( |  | ) |
| inline

Definition at line 55 of file PosixMutex.hxx.

## ◆ PosixMutex() [2/2]

PosixMutex::PosixMutex | ( | const PosixMutex & | other | ) |
| delete

## Member Function Documentation

## ◆ lock()

void PosixMutex::lock | ( |  | ) |
| inline

Definition at line 63 of file PosixMutex.hxx.

## ◆ operator=()

PosixMutex& PosixMutex::operator= | ( | const PosixMutex & | other | ) |
| delete

## ◆ try_lock()

bool PosixMutex::try_lock | ( |  | ) |
| inline

Definition at line 67 of file PosixMutex.hxx.

## ◆ unlock()

void PosixMutex::unlock | ( |  | ) |
| inline

Definition at line 71 of file PosixMutex.hxx.

## Friends And Related Function Documentation

## ◆ PosixCond

friend class PosixCond
| friend

Definition at line 39 of file PosixMutex.hxx.

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

- thread/PosixMutex.hxx