Timed removal of the last item into *item.
Declared in <bdlcc_deque.h>
int
timedPopBack(
TYPE* item,
bsls::TimeInterval const& timeout);
Remove the last item in this container and load that item value into the specified *item. If this container 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. Note that this method can block indefinitely if another thread has the mutex locked, particularly by a proctor object -- there is no guarantee that this method will return after timeout.
0 on success, and a non-zero value if the call timed out
| Name | Description |
|---|---|
| item | address at which to load the removed value |
| timeout | absolute time at which to stop waiting |