8#ifndef INCLUDED_BSLMT_SEMAPHORE
9#define INCLUDED_BSLMT_SEMAPHORE
146#include <bslscm_version.h>
156template <
class SEMAPHORE_POLICY>
202 void post(
int value);
260 return d_impl.tryWait();
273 return d_impl.getValue();
Definition bslmt_semaphore.h:157
Definition bslmt_semaphore.h:168
int tryWait()
Definition bslmt_semaphore.h:258
~Semaphore()
Destroy this semaphore.
Definition bslmt_semaphore.h:241
int getValue() const
Return the value of the current count of this semaphore.
Definition bslmt_semaphore.h:271
void wait()
Definition bslmt_semaphore.h:264
Semaphore()
Definition bslmt_semaphore.h:229
void post()
Atomically increment the count of this semaphore.
Definition bslmt_semaphore.h:246
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bslmt_barrier.h:344