[#BloombergLP-bslmt-Condition-timedWait-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Condition.adoc[Condition]::timedWait :relfileprefix: ../../../ :mrdocs: Unlock `mutex` and wait until signaled or until `absTime`. == Synopses Declared in `<bslmt_condition.h>` Unlock `mutex` and wait until signaled or until `absTime`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bslmt/Condition/timedWait-0d.adoc[timedWait]( xref:BloombergLP/bslmt/Mutex.adoc[Mutex]* mutex, xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& absTime); ---- [.small]#xref:BloombergLP/bslmt/Condition/timedWait-0d.adoc[_» more..._]# Unlock `mutex` and wait until signaled or until `absTime`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CLOCK, class DURATION> int xref:BloombergLP/bslmt/Condition/timedWait-0e.adoc[timedWait]( xref:BloombergLP/bslmt/Mutex.adoc[Mutex]* mutex, bsl::chrono::time_point<CLOCK, DURATION> const& absTime); ---- [.small]#xref:BloombergLP/bslmt/Condition/timedWait-0e.adoc[_» more..._]# == Return Value 0 on success, `e_TIMED_OUT` on timeout, or another value on error == Parameters [cols="1,4"] |=== | Name| Description | *mutex* | mutex already locked by the calling thread | *absTime* | absolute timeout for the wait |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#