[#BloombergLP-bslmt-ChronoUtil-timedWait-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ChronoUtil.adoc[ChronoUtil]::timedWait
:relfileprefix: ../../../
:mrdocs:

`timedWait` overloads

== Synopses

Declared in `&lt;bslmt&lowbar;chronoutil&period;h&gt;`

Block on `primitive` until success or the absolute timeout&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class PRIMITIVE,
    class CLOCK,
    class DURATION&gt;
static
int
xref:BloombergLP/bslmt/ChronoUtil/timedWait-06.adoc[timedWait](
    PRIMITIVE* primitive,
    bsl::chrono::time&lowbar;point&lt;CLOCK, DURATION&gt; const& absTime);
----

[.small]#xref:BloombergLP/bslmt/ChronoUtil/timedWait-06.adoc[_» more&period;&period;&period;_]#

Block on `primitive` with an argument until success or timeout&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class PRIMITIVE,
    class ARG&lowbar;TYPE,
    class CLOCK,
    class DURATION&gt;
static
int
xref:BloombergLP/bslmt/ChronoUtil/timedWait-0a.adoc[timedWait](
    PRIMITIVE* primitive,
    ARG&lowbar;TYPE* argument,
    bsl::chrono::time&lowbar;point&lt;CLOCK, DURATION&gt; const& absTime);
----

[.small]#xref:BloombergLP/bslmt/ChronoUtil/timedWait-0a.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, `PRIMITIVE&colon;&colon;e&lowbar;TIMED&lowbar;OUT` on timeout, and other values on error

== Parameters

[cols="1,4"]
|===
| Name| Description
| *primitive*
| synchronization primitive on which to wait
| *absTime*
| absolute timeout as a `bsl&colon;&colon;chrono&colon;&colon;time&lowbar;point`
| *argument*
| additional argument forwarded to `timedWait`
|===


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