21 #ifndef G_SEMAPHORE__H
22 #define G_SEMAPHORE__H
50 G_EXCEPTION( Error ,
"semaphore error" ) ;
52 {
unsigned long filler[4] ; } ;
54 explicit Semaphore(
unsigned int initial_value = 1U ) ;
82 friend class G::SemaphoreImp ;
void decrement()
Decrement-but-block-if-zero operator.
static Semaphore * at(storage_type *)
Syntactic sugar to return an object pointer corresponding to the given storage pointer.
void increment()
Increment operator. Used for mutex unlocking.
A semaphore class with a posix or sysv implementation chosen at build-time.
~Semaphore()
Destroys the semaphore.
Semaphore(unsigned int initial_value=1U)
Constructor for a new anonymous semaphore, typically located inside a shared memory segment using "pl...