#include <ipc.simple.sem.H>
Public Member Functions | |
IPC_SimpleSemaphore (int key) | |
int | up () |
int | down () |
int | wait () |
virtual int | create () |
virtual int | attach () |
virtual int | remove () |
virtual int | lock () |
virtual int | unlock () |
virtual void | print (int do_wait=1) |
Protected Member Functions | |
int | v_op () |
int | p_op () |
int | wait_op () |
Protected Attributes | |
int | _id |
IPC_SimpleSemaphore::IPC_SimpleSemaphore | ( | int | key | ) | [inline] |
int IPC_SimpleSemaphore::v_op | ( | ) | [inline, protected] |
int IPC_SimpleSemaphore::p_op | ( | ) | [inline, protected] |
int IPC_SimpleSemaphore::up | ( | ) | [inline] |
References v_op().
int IPC_SimpleSemaphore::down | ( | ) | [inline] |
References p_op().
int IPC_SimpleSemaphore::wait | ( | ) | [inline] |
References wait_op().
virtual int IPC_SimpleSemaphore::create | ( | ) | [inline, virtual] |
References _id, v_op(), and semun::val.
virtual int IPC_SimpleSemaphore::attach | ( | ) | [inline, virtual] |
References _id.
virtual int IPC_SimpleSemaphore::remove | ( | ) | [inline, virtual] |
References _id.
virtual int IPC_SimpleSemaphore::lock | ( | ) | [inline, virtual] |
References p_op().
virtual int IPC_SimpleSemaphore::unlock | ( | ) | [inline, virtual] |
References v_op().
virtual void IPC_SimpleSemaphore::print | ( | int | do_wait = 1 |
) | [inline, virtual] |
References _id, and semun::buf.
int IPC_SimpleSemaphore::_id [protected] |