[#BloombergLP-bslmt-ThreadUtilImpl-04-sleepUntil-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl&lt;Platform::PosixThreads&gt;]::sleepUntil
:relfileprefix: ../../../
:mrdocs:

Suspend the current thread until the specified absolute time&period;

== Synopses

Declared in `&lt;bslmt&lowbar;threadutilimpl&lowbar;pthread&period;h&gt;`

Suspend the current thread until the specified absolute time&period;


[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&colon;&colon;SystemClockType&colon;&colon;e&lowbar;REALTIME);
----

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

Suspend the current thread until the specified absolute time&period;


[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&colon;&colon;SystemClockType&colon;&colon;e&lowbar;REALTIME);
----

[.small]#xref:BloombergLP/bslmt/ThreadUtilImpl-04/sleepUntil-03.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;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]#
