Append item to the front, waiting until timeout if the queue is full.

Synopsis

Declared in <bdlcc_queue.h>

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

Description

Append the specified item to the front of this queue. If the high water mark is non‐negative and the number of items in this queue is greater than or equal to the high‐water mark, then block until the number of items in this queue is less than the high‐water mark 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 the number of items in this queue fell below the high‐water mark.

Return Value

0 on success, and a non‐zero value if the call timed out

Parameters

Name

Description

item

item to append

timeout

absolute time at which to stop waiting

Created with MrDocs