#include <cel_syncobjs.h>

Public Member Functions | |
| Semaphore (size_t inMax, const String &inName=NullString) | |
| virtual void | lock () const |
| virtual void | unlock () const |
Definition at line 79 of file cel_syncobjs.h.
| Celartem::Semaphore::Semaphore | ( | size_t | inMax, | |
| const String & | inName = NullString | |||
| ) |
This constuctor creates a new anonymous/named semaphore or opens an existing named semaphore.
| inMax | The size of the semaphore. | |
| inName | The name of the semaphore. For anonymous semaphore, this should be "". |
| virtual void Celartem::Semaphore::lock | ( | ) | const [virtual] |
| virtual void Celartem::Semaphore::unlock | ( | ) | const [virtual] |
Unlocks the semaphore.
For exception-safe programming, you should use Locker class instead of calling lock and unlock directly.
Implements Celartem::Lockable.