ardour
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PBD::GlibSemaphore Class Reference

#include <glib_semaphore.h>

Public Member Functions

 GlibSemaphore (gint initial_val=1)
 
void wait ()
 
bool try_wait ()
 
void post ()
 

Private Member Functions

 GlibSemaphore (const GlibSemaphore &sema)
 
GlibSemaphoreoperator= (const GlibSemaphore &sema)
 

Private Attributes

atomic_counter m_counter
 
Glib::Threads::Cond m_cond
 
Glib::Threads::Mutex m_mutex
 

Detailed Description

Definition at line 30 of file glib_semaphore.h.

Constructor & Destructor Documentation

PBD::GlibSemaphore::GlibSemaphore ( const GlibSemaphore sema)
private
PBD::GlibSemaphore::GlibSemaphore ( gint  initial_val = 1)

Definition at line 24 of file glib_semaphore.cc.

Member Function Documentation

GlibSemaphore& PBD::GlibSemaphore::operator= ( const GlibSemaphore sema)
private
void PBD::GlibSemaphore::post ( )

Definition at line 61 of file glib_semaphore.cc.

bool PBD::GlibSemaphore::try_wait ( )

Definition at line 43 of file glib_semaphore.cc.

void PBD::GlibSemaphore::wait ( )

Definition at line 30 of file glib_semaphore.cc.

Member Data Documentation

Glib::Threads::Cond PBD::GlibSemaphore::m_cond
private

Definition at line 50 of file glib_semaphore.h.

atomic_counter PBD::GlibSemaphore::m_counter
private

Definition at line 49 of file glib_semaphore.h.

Glib::Threads::Mutex PBD::GlibSemaphore::m_mutex
private

Definition at line 51 of file glib_semaphore.h.


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