BloombergLP::bdlcc::Queue::timedPopBack

Remove the last item in this queue and load that item value into the specified buffer. If this queue is empty, block until an item is available or until the specified timeout (expressed as the ABSOLUTE time from 00:00:00 UTC, January 1, 1970) expires. Return 0 on success, and a non-zero value if the call timed out before an item was available.

Synopsis

Declared in <bdlcc_queue.h>

int
timedPopBack(
    TYPE* buffer,
    bsls::TimeInterval const& timeout);