BloombergLP::bslmt::TimedSemaphore::tryWait

If the count of this timed semaphore is positive, atomically decrement the count and return 0; otherwise, return a non-zero value with no effect on the count.

Synopsis

Declared in <bslmt_timedsemaphore.h>

int
tryWait();

Return Value

0 on success, or a non-zero value if the count was not positive