Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Semaphore Class Reference

#include <Syncro.h>

List of all members.

Public Methods

 Semaphore ()
 Semaphore (int value, int maxvalue=-1)
 ~Semaphore ()
int wait (int timeout=0, int waitstep=10)
int try_wait ()
void post ()
int value ()

Private Attributes

sem_t * sem


Constructor & Destructor Documentation

Semaphore::Semaphore  
 

Definition at line 77 of file Syncro.cpp.

References sem.

Semaphore::Semaphore int    value,
int    maxvalue = -1
 

Definition at line 88 of file Syncro.cpp.

References DBUG_PRINT, sem, and value().

Semaphore::~Semaphore  
 

Definition at line 109 of file Syncro.cpp.

References sem.


Member Function Documentation

void Semaphore::post  
 

Definition at line 167 of file Syncro.cpp.

References sem.

Referenced by Master::checkingThread(), UDPConfirm::checkList(), Master::consoleInThread(), Master::Master(), PostOffice::put_back(), Slave::startcbTaskStop(), Master::startMaster(), PostOffice::stopWait(), UDPConfirm::waitData(), and Master::~Master().

int Semaphore::try_wait  
 

Definition at line 152 of file Syncro.cpp.

References sem.

int Semaphore::value  
 

Definition at line 177 of file Syncro.cpp.

References sem.

Referenced by PostOffice::_receive(), PostOffice::_receive_any(), Master::consoleOutThread(), Semaphore(), and PostOffice::stopWait().

int Semaphore::wait int    timeout = 0,
int    waitstep = 10
 

Definition at line 119 of file Syncro.cpp.

References sem, SEM_TIMEOUT, and SLEEP_MSEC.

Referenced by PostOffice::_receive(), PostOffice::_receive_any(), Master::consoleOutThread(), Slave::msgTaskCtrl_Stop(), and UDPConfirm::sendData().


Member Data Documentation

sem_t* Semaphore::sem [private]
 

Definition at line 71 of file Syncro.h.

Referenced by post(), Semaphore(), try_wait(), value(), wait(), and ~Semaphore().


The documentation for this class was generated from the following files:
Generated on Mon Nov 25 12:46:40 2002 for qadpz by doxygen1.2.18