[#BloombergLP-bdlcc-Queue-timedPushFront]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Queue.adoc[Queue]::timedPushFront
:relfileprefix: ../../../
:mrdocs:

Append the specified `item` to the front of this queue&period; If the high water mark is non&hyphen;negative and the number of items in this queue is greater than or equal to the high&hyphen;water mark, then block until the number of items in this queue is less than the high&hyphen;water mark or until the specified `timeout` (expressed as the *ABSOLUTE* time from 00&colon;00&colon;00 UTC, January 1, 1970) expires&period; Return 0 on success, and a non&hyphen;zero value if the call timed out before the number of items in this queue fell below the high&hyphen;water mark&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;queue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
timedPushFront(
    TYPE const& item,
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& timeout);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
