[#BloombergLP-bslmt-TimedSemaphoreImpl-041-timedWait] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/TimedSemaphoreImpl-041.adoc[TimedSemaphoreImpl<Platform::PosixAdvTimedSemaphore>]::timedWait :relfileprefix: ../../../ :mrdocs: Block until the count of this semaphore is a positive value, or until the specified `absTime` timeout expires. `absTime` is an _absolute_ time represented as an interval from some epoch, which is determined by the clock indicated at construction (see {Supported Clock‐Types} in the component documentation). If the `absTime` timeout did not expire before the count attained a positive value, atomically decrement the count and return 0; otherwise, return a non‐zero value with no effect on the count. == Synopsis Declared in `<bslmt_timedsemaphoreimpl_posixadv.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int timedWait(xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& absTime); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#