BloombergLP::bdlcc::Deque::timedPushFront

timedPushFront overloads

Synopses

Declared in <bdlcc_deque.h>

Append the specified move-insertable item to the front of this container if space is available, otherwise (if the container is full) block waiting for space to become available or until the specified timeout (expressed as the ABSOLUTE time from 00:00:00 UTC, January 1, 1970) expires. If the container is modified,item is left in a valid but unspecified state, otherwise item is left unchanged. Return 0 if space was or became available and this container was updated, and a non-zero value if the call timed out before space became available and this container was left unmodified. 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.

int
timedPushFront(
    bslmf::MovableRef<TYPE> item,
    bsls::TimeInterval const& timeout);
» more...

Append the specified item to the front of this container if space is available, otherwise (if the container is full) block waiting for space to become available or until the specified timeout (expressed as the ABSOLUTE time from 00:00:00 UTC, January 1, 1970) expires. Return 0 if space was or became available and this container was updated, and a non-zero value if the call timed out before space became available and this container was left unmodified. 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.

int
timedPushFront(
    TYPE const& item,
    bsls::TimeInterval const& timeout);
» more...