[#BloombergLP-bslmt-ThreadUtilImpl-04-sleepUntil-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl<Platform::PosixThreads>]::sleepUntil :relfileprefix: ../../../ :mrdocs: Suspend the current thread until the specified absolute time. == Synopses Declared in `<bslmt_threadutilimpl_pthread.h>` Suspend the current thread until the specified absolute time. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bslmt/ThreadUtilImpl-04/sleepUntil-0f.adoc[sleepUntil]( xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& absoluteTime, xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType = bsls::SystemClockType::e_REALTIME); ---- [.small]#xref:BloombergLP/bslmt/ThreadUtilImpl-04/sleepUntil-0f.adoc[_» more..._]# Suspend the current thread until the specified absolute time. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bslmt/ThreadUtilImpl-04/sleepUntil-03.adoc[sleepUntil]( xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& absoluteTime, bool retryOnSignalInterrupt = false, xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType = bsls::SystemClockType::e_REALTIME); ---- [.small]#xref:BloombergLP/bslmt/ThreadUtilImpl-04/sleepUntil-03.adoc[_» more..._]# == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *absoluteTime* | absolute time at which to resume | *clockType* | clock epoch used to interpret `absoluteTime` | *retryOnSignalInterrupt* | whether to resume sleep after a signal |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#