8#ifndef INCLUDED_BSLMT_SEMAPHORE
9#define INCLUDED_BSLMT_SEMAPHORE
147#include <bslscm_version.h>
157template <
class SEMAPHORE_POLICY>
205 void post(
int value);
263 return d_impl.tryWait();
276 return d_impl.getValue();
Definition bslmt_semaphore.h:158
Definition bslmt_semaphore.h:169
int tryWait()
Definition bslmt_semaphore.h:261
~Semaphore()
Destroy this semaphore.
Definition bslmt_semaphore.h:244
int getValue() const
Return the value of the current count of this semaphore.
Definition bslmt_semaphore.h:274
void wait()
Definition bslmt_semaphore.h:267
Semaphore()
Definition bslmt_semaphore.h:232
void post()
Atomically increment the count of this semaphore.
Definition bslmt_semaphore.h:249
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition bslmt_barrier.h:344