threadmm::basic::semaphore Class Reference
[Basic emulation classes]

#include <threadmm/semaphore.hh>

List of all members.


Detailed Description

Semaphore emulation class.

See also:
threadmm::basic_semaphore


Public Member Functions

 semaphore (unsigned int value, bool shared=false)
virtual ~semaphore ()
bool wait ()
bool try_wait ()
bool increment ()
int value () const


Constructor & Destructor Documentation

threadmm::basic::semaphore::semaphore unsigned int  value,
bool  shared = false
[inline]
 

threadmm::basic::semaphore::~semaphore  )  [inline, virtual]
 


Member Function Documentation

bool threadmm::basic::semaphore::increment  )  [inline]
 

Unlock the semaphore.

bool threadmm::basic::semaphore::try_wait  )  [inline]
 

Try to get a lock on the semaphore.

int threadmm::basic::semaphore::value  )  const [inline]
 

Get value of the semaphore.

bool threadmm::basic::semaphore::wait  )  [inline]
 

Lock the semaphore.


The documentation for this class was generated from the following file:
Top of page
Last update Tue Nov 9 12:40:51 2004
Christian Holm
Created by DoxyGen 1.3.9.1