#include <ipc.simple.sem.H>
Public Types | |
enum | { EMPTY = 0, FULL = 1 } |
enum | { ALL_DONE = 0, DONE = 1 } |
Public Member Functions | |
SemaphorePair (int key) | |
virtual | ~SemaphorePair () |
int | semid () const |
int | create () |
int | attach () |
int | wait (int index) |
int | signal (int index) |
Protected Attributes | |
int | _semid |
int | _creator |
int | _key |
SemaphorePair::SemaphorePair | ( | int | key | ) | [inline] |
int SemaphorePair::semid | ( | ) | const [inline] |
References _semid.
int SemaphorePair::wait | ( | int | index | ) | [inline] |
References _semid.
int SemaphorePair::signal | ( | int | index | ) | [inline] |
References _semid.
int SemaphorePair::_semid [protected] |
int SemaphorePair::_creator [protected] |
Referenced by create(), and ~SemaphorePair().
int SemaphorePair::_key [protected] |