[#BloombergLP-bslmt-ThreadUtil-sleepUntil-0be]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::sleepUntil
:relfileprefix: ../../../
:mrdocs:

`sleepUntil` overloads

== Synopses

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

Suspend execution of the current thread until the specified `absoluteTime`, which is an _absolute_ time represented as an interval from some epoch, determined by the clock associated with the time point&period; The behavior is undefined unless `absoluteTime` represents a time after January 1, 1970 and before the end of December 31, 9999&period; Note that the actual time suspended depends on many factors including system scheduling and system timer resolution&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CLOCK,
    class DURATION&gt;
static
void
xref:BloombergLP/bslmt/ThreadUtil/sleepUntil-0b1.adoc[sleepUntil](bsl::chrono::time&lowbar;point&lt;CLOCK, DURATION&gt; const& absoluteTime);
----

[.small]#xref:BloombergLP/bslmt/ThreadUtil/sleepUntil-0b1.adoc[_» more&period;&period;&period;_]#

Suspend execution of the current thread until the specified `absoluteTime`, or an interrupting signal is received&period; Optionally specify `clockType` which determines the epoch from which the interval `absoluteTime` is measured (see &lcub;Supported Clock&hyphen;Types&rcub; in the component documentation)&period; The behavior is undefined unless `absoluteTime` represents a time after January 1, 1970 and before the end of December 31, 9999 (i&period;e&period;, a time interval greater than or equal to 0, and less than 253,402,300,800 seconds)&period; Note that the actual time suspended depends on many factors including system scheduling and system timer resolution&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bslmt/ThreadUtil/sleepUntil-0c.adoc[sleepUntil](
    xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval] const& absoluteTime,
    xref:BloombergLP/bsls/SystemClockType/Enum.adoc[bsls::SystemClockType::Enum] clockType = bsls&colon;&colon;SystemClockType&colon;&colon;e&lowbar;REALTIME);
----

[.small]#xref:BloombergLP/bslmt/ThreadUtil/sleepUntil-0c.adoc[_» more&period;&period;&period;_]#


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