Take up to maximumToTake units from this semaphore.
Declared in <bslmt_fastpostsemaphore.h>
int
take(int maximumToTake);
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.
number of units taken, or 0 if the count was not positive
| Name | Description |
|---|---|
| maximumToTake | maximum number of units to take from the count |