If the count of this semaphore is positive, reduce the count by the lesser of the count and the specified maximumToTake and return the magnitude of the change to the count. Otherwise, do nothing and return 0.

Synopsis

Declared in <bslmt_fastpostsemaphoreimpl.h>

int
take(int maximumToTake);

Created with MrDocs