BloombergLP::bslmt::Latch::currentCount

Return the current number of events for which this latch is waiting.

Synopsis

Declared in <bslmt_latch.h>

int
currentCount() const;

Description

Note that this method is provided primarily for debugging purposes (i.e., its intended use is not as a synchronization mechanism), and can be used only as an upper bound for the current count without other external state information.

Return Value

current number of events this latch is waiting for