#include <sem.hh>
Collaboration diagram for RCS_SEMAPHORE:
Public Methods | |
RCS_SEMAPHORE (unsigned long int id, int oflag, double _timeout, int mode=DEFAULT_SEM_MODE, int state=0) | |
~RCS_SEMAPHORE () | |
int | wait () |
int | trywait () |
int | post () |
int | flush () |
int | getvalue () |
int | setflag (int oflag) |
int | valid () |
int | clear () |
Data Fields | |
unsigned long int | id |
double | timeout |
int | oflag |
int | mode |
int | state |
rcs_sem_t * | sem |
unsigned int | sval |
Private Methods | |
RCS_SEMAPHORE (RCS_SEMAPHORE &sem) |
|
Definition at line 127 of file sem.cc. 00129 { 00130 if (sem == NULL) 00131 return -1; 00132 return rcs_sem_getvalue (sem, &sval); 00133 } 00134 00135 int 00136 RCS_SEMAPHORE::setflag (int _oflag) 00137 { 00138 oflag = _oflag; /* we can reset whether this was the 00139 one who created the semaphore */ 00140 return (0); 00141 } 00142 00143 int 00144 RCS_SEMAPHORE::clear () 00145 { 00146 return rcs_sem_clear (sem); 00147 } 00148 00149 00150 00151 00152 // This constructor declared private to prevent copying. |
|
|
|
|
|
Definition at line 182 of file sem.cc. Referenced by FILEMEM::lock_input(), FILEMEM::lock_output(), and SHMEM::main_access().
|
|
|
|
Definition at line 208 of file sem.cc. Referenced by SHMEM::main_access(), FILEMEM::unlock_input(), and FILEMEM::unlock_output().
|
|
Definition at line 220 of file sem.cc. Referenced by SHMEM::main_access().
|
|
|
|
Definition at line 240 of file sem.cc. Referenced by SHMEM::close(), and FILEMEM::~FILEMEM().
|
|
Definition at line 155 of file sem.cc. Referenced by FILEMEM::FILEMEM(), and SHMEM::open().
|
|
|
|
|
|
Definition at line 147 of file sem.hh. Referenced by SHMEM::main_access().
|
|
|
|
|
|
|
|
|
|
|