Ardour  9.0-pre0-582-g084a23a80d
PBD::Semaphore Class Reference

#include <semutils.h>

Public Member Functions

 Semaphore (const char *name, int val)
 
 ~Semaphore ()
 
int signal ()
 
int wait ()
 
int reset ()
 

Private Member Functions

sem_t * ptr_to_sem () const
 

Private Attributes

sem_t _sem
 

Detailed Description

Definition at line 40 of file semutils.h.

Constructor & Destructor Documentation

◆ Semaphore()

PBD::Semaphore::Semaphore ( const char *  name,
int  val 
)

◆ ~Semaphore()

PBD::Semaphore::~Semaphore ( )

Member Function Documentation

◆ ptr_to_sem()

sem_t* PBD::Semaphore::ptr_to_sem ( ) const
inlineprivate

Definition at line 53 of file semutils.h.

◆ reset()

int PBD::Semaphore::reset ( )
inline

Definition at line 69 of file semutils.h.

◆ signal()

int PBD::Semaphore::signal ( )
inline

Definition at line 67 of file semutils.h.

◆ wait()

int PBD::Semaphore::wait ( )
inline

Definition at line 68 of file semutils.h.

Member Data Documentation

◆ _sem

sem_t PBD::Semaphore::_sem
mutableprivate

Definition at line 52 of file semutils.h.


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