Decrement the event count by numEvents and release waiters if 0.
Synopsis
Declared in <bslmt_latch.h>
void
countDown(int numEvents);
Description
Decrement the number of events that this latch is waiting for by the specified numEvents, and if the resulting number of events is 0 release any waiting threads. The behavior is undefined unless numEvents > 0 and the sum of all events that have arrived at this latch does not exceed the count with which it was initialized. Note that the initial count of events is supplied at construction.
Parameters
Name |
Description |
numEvents |
number of events by which to decrement the count |
Created with MrDocs