Sema Class Reference

#include <sema.h>


Public Member Functions

 Sema (int init_value=1, char *title=0)
 ~Sema ()
void lock (char *location=0)
void unlock ()
int get_value ()
void reset ()

Data Fields

sem_t sem
char * title
int init_value


Detailed Description

Definition at line 7 of file sema.h.


Constructor & Destructor Documentation

Sema::Sema ( int  init_value = 1,
char *  title = 0 
)

Definition at line 7 of file sema.C.

References sem.

Sema::~Sema (  ) 

Definition at line 14 of file sema.C.

References sem, and UNSET_ALL_LOCKS.


Member Function Documentation

void Sema::lock ( char *  location = 0  ) 

Definition at line 21 of file sema.C.

References sem, SET_LOCK, SET_LOCK2, and title.

Referenced by AudioDevice::arm_buffer(), AudioDevice::run_output(), and AudioDevice::set_last_buffer().

void Sema::unlock (  ) 

int Sema::get_value (  ) 

Definition at line 34 of file sema.C.

References sem.

void Sema::reset (  ) 

Definition at line 41 of file sema.C.

References init_value, sem, and UNSET_ALL_LOCKS.

Referenced by AudioDevice::reset_output().


Field Documentation

sem_t Sema::sem

Definition at line 18 of file sema.h.

Referenced by get_value(), lock(), reset(), Sema(), unlock(), and ~Sema().

char* Sema::title

Definition at line 19 of file sema.h.

Referenced by lock().

Definition at line 20 of file sema.h.

Referenced by reset().


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

Generated on Mon Apr 28 14:42:50 2008 for Cinelerra by  doxygen 1.5.5