This is a simple semaphore package that assumes there are no race conditions for initialization (i.e., the order of process startup must be well defined).
More...
|
| ACE_SV_Semaphore_Simple () |
|
| ACE_SV_Semaphore_Simple (key_t key, short flags=ACE_SV_Semaphore_Simple::ACE_CREATE, int initial_value=1, u_short nsems=1, mode_t perms=ACE_DEFAULT_FILE_PERMS) |
|
| ACE_SV_Semaphore_Simple (const char *name, short flags=ACE_SV_Semaphore_Simple::ACE_CREATE, int initial_value=1, u_short nsems=1, mode_t perms=ACE_DEFAULT_FILE_PERMS) |
|
| ACE_SV_Semaphore_Simple (const wchar_t *name, short flags=ACE_SV_Semaphore_Simple::ACE_CREATE, int initial_value=1, u_short nsems=1, mode_t perms=ACE_DEFAULT_FILE_PERMS) |
|
| ~ACE_SV_Semaphore_Simple () |
|
int | open (const char *name, short flags=ACE_SV_Semaphore_Simple::ACE_CREATE, int initial_value=1, u_short nsems=1, mode_t perms=ACE_DEFAULT_FILE_PERMS) |
|
int | open (const wchar_t *name, short flags=ACE_SV_Semaphore_Simple::ACE_CREATE, int initial_value=1, u_short nsems=1, mode_t perms=ACE_DEFAULT_FILE_PERMS) |
|
int | open (key_t key, short flags=ACE_SV_Semaphore_Simple::ACE_CREATE, int initial_value=1, u_short nsems=1, mode_t perms=ACE_DEFAULT_FILE_PERMS) |
|
int | close () |
|
int | remove () const |
|
int | acquire (u_short n=0, short flags=0) const |
|
int | acquire_read (u_short n=0, short flags=0) const |
| Acquire a semaphore for reading.
|
|
int | acquire_write (u_short n=0, short flags=0) const |
| Acquire a semaphore for writing.
|
|
int | tryacquire (u_short n=0, short flags=0) const |
| Non-blocking version of <acquire>.
|
|
int | tryacquire_read (u_short n=0, short flags=0) const |
| Try to acquire the semaphore for reading.
|
|
int | tryacquire_write (u_short n=0, short flags=0) const |
| Try to acquire the semaphore for writing.
|
|
int | release (u_short n=0, short flags=0) const |
|
int | op (short val, u_short semnum=0, short flags=SEM_UNDO) const |
|
int | op (sembuf op_vec[], u_short nsems) const |
| General ACE_SV_Semaphore operation on an array of SV_Semaphores.
|
|
int | control (int cmd, semun arg, u_short n=0) const |
|
int | control (int cmd, int value=0, u_short n=0) const |
|
int | get_id () const |
| Get underlying internal id.
|
|
void | dump () const |
| Dump the state of an object.
|
|
This is a simple semaphore package that assumes there are no race conditions for initialization (i.e., the order of process startup must be well defined).