Inheritance diagram for lfc::Semaphore::

Public Methods | |
| Semaphore (long count=1) | |
| virtual | ~Semaphore () throw () |
| virtual void | wait () |
| waits for the semaphore to become available. If the semaphore's count is 0, it blocks. Otherwise, it decrements the count and returns. More... | |
| virtual bool | tryWait () |
| checks for the availability of the semaphore. Doesn't block, but treats the semaphore count just like wait() does. More... | |
| virtual void | post () |
| increments the semaphore's count. More... | |
Protected Attributes | |
| pal::threads::SemHandle | m_handle |
|
|
|
|
|
|
|
|
waits for the semaphore to become available. If the semaphore's count is 0, it blocks. Otherwise, it decrements the count and returns.
|
|
|
checks for the availability of the semaphore. Doesn't block, but treats the semaphore count just like wait() does.
|
|
|
increments the semaphore's count.
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001