If the count of this semaphore is positive, reduce the count to 0 and return the original value of the count. Otherwise, do nothing and return 0.

Synopsis

Declared in <bslmt_fastpostsemaphoreimpl.h>

int
takeAll();

Return Value

original count if positive, otherwise 0

Created with MrDocs