If the count of this 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_semaphore.h>

int
tryWait();

Created with MrDocs