#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 |
Definition at line 7 of file sema.h.
| Sema::Sema | ( | int | init_value = 1, |
|
| char * | title = 0 | |||
| ) |
| Sema::~Sema | ( | ) |
| 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 | ( | ) |
Definition at line 28 of file sema.C.
References sem, and UNSET_LOCK.
Referenced by AudioDevice::arm_buffer(), AudioDevice::interrupt_playback(), AudioDevice::run_output(), and AudioDevice::set_last_buffer().
| void Sema::reset | ( | ) |
Definition at line 41 of file sema.C.
References init_value, sem, and UNSET_ALL_LOCKS.
Referenced by AudioDevice::reset_output().
| sem_t Sema::sem |
| char* Sema::title |
| int Sema::init_value |
1.5.5