[#BloombergLP-bslmt-TimedSemaphoreImpl-041-tryWait] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/TimedSemaphoreImpl-041.adoc[TimedSemaphoreImpl<Platform::PosixAdvTimedSemaphore>]::tryWait :relfileprefix: ../../../ :mrdocs: Decrement the count of this semaphore if it is positive and return 0. Return a non‐zero value otherwise. == Synopsis Declared in `<bslmt_timedsemaphoreimpl_posixadv.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int tryWait(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#