|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiSemaphore.h>
Inheritance diagram for lti::semaphore:


Public Member Functions | |
| semaphore (const int initialValue=1) | |
| virtual | ~semaphore () |
| bool | wait () |
| bool | tryWait () |
| bool | post () |
| int | getValue () |
| void | reset () |
| virtual const char * | getTypeName () const |
Protected Attributes | |
| sem_t | theSemaphore |
|
|
default constructor
|
|
|
destructor
|
|
|
returns the name of this type
Reimplemented from lti::object. |
|
|
get current value
|
|
|
post semaphore, i.e. increase the value
|
|
|
reset value to initialValue
|
|
|
Try to wait on semaphore, but do not block.
|
|
|
wait on semaphore, i.e. decrease the value or wait if counter <= 0
|
|
|
the posix semaphore
|