Difference between revisions of "cpp/thread/sleep until"
From cppreference.com
(Created page with "{{cpp/title|n=this_thread::|sleep_until}} {{cpp/thread/sidebar}} {{ddcl | header=thread | notes={{mark c++0x feature}} | 1= template< typename Rep, typename Period > void sleep_u...") |
(fix declaration) |
||
Line 2: | Line 2: | ||
{{cpp/thread/sidebar}} | {{cpp/thread/sidebar}} | ||
{{ddcl | header=thread | notes={{mark c++0x feature}} | 1= | {{ddcl | header=thread | notes={{mark c++0x feature}} | 1= | ||
− | template< typename | + | template< typename Clock, typename Duration > |
− | void sleep_until( const std::chrono::time_point< Clock, Duration >& sleep_time ); | + | void sleep_until( const std::chrono::time_point<Clock,Duration>& sleep_time ); |
}} | }} | ||
Revision as of 11:08, 24 July 2011
Defined in header <thread>
|
||
template< typename Clock, typename Duration > void sleep_until( const std::chrono::time_point<Clock,Duration>& sleep_time ); |
Template:mark c++0x feature | |
Continues execution of the current thread only after specified sleep_time
has been reached for the specified clock. It is not guaranteed that the thread will continue exactly after sleep_time
has been reached.
sleep_time | - | time to block until |
Template:returns Template:return none
Template:throws Template:throw none