MPD  0.20.15
Public Member Functions | Friends
CriticalSection Class Reference

Wrapper for a CRITICAL_SECTION, backend for the Mutex class. More...

#include <CriticalSection.hxx>

Public Member Functions

 CriticalSection ()
 
 ~CriticalSection ()
 
 CriticalSection (const CriticalSection &other)=delete
 
CriticalSectionoperator= (const CriticalSection &other)=delete
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 

Friends

class WindowsCond
 

Detailed Description

Wrapper for a CRITICAL_SECTION, backend for the Mutex class.

Definition at line 38 of file CriticalSection.hxx.

Constructor & Destructor Documentation

◆ CriticalSection() [1/2]

CriticalSection::CriticalSection ( )
inline

Definition at line 44 of file CriticalSection.hxx.

◆ ~CriticalSection()

CriticalSection::~CriticalSection ( )
inline

Definition at line 48 of file CriticalSection.hxx.

◆ CriticalSection() [2/2]

CriticalSection::CriticalSection ( const CriticalSection other)
delete

Member Function Documentation

◆ lock()

void CriticalSection::lock ( )
inline

Definition at line 55 of file CriticalSection.hxx.

◆ operator=()

CriticalSection& CriticalSection::operator= ( const CriticalSection other)
delete

◆ try_lock()

bool CriticalSection::try_lock ( )
inline

Definition at line 59 of file CriticalSection.hxx.

◆ unlock()

void CriticalSection::unlock ( )
inline

Definition at line 63 of file CriticalSection.hxx.

Friends And Related Function Documentation

◆ WindowsCond

friend class WindowsCond
friend

Definition at line 39 of file CriticalSection.hxx.


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