Block until the number of events that this latch is waiting for reaches 0. Note that completion of this method does not guarantee this object is safe to destroy.
Declared in <bslmt_latch.h>
<bslmt_latch.h>
void wait();