Namespaces
Variants
Views
Actions

std::this_thread::sleep_for

From cppreference.com
< cpp‎ | thread
Revision as of 03:32, 22 July 2011 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/thread/sidebar

Defined in header <thread>
template< typename Rep, typename Period >
void sleep_for( std::chrono::duration<Rep, Period> sleep_duration );
Template:mark c++0x feature

Continues execution of the current thread only after specified sleep_duration has been elapsed. It is not guaranteed that the thread will continue exactly after sleep_duration has elapsed.

Template:params

sleep_duration - time duration to sleep

Template:returns Template:return none

Template:throws Template:throw none

Template:see also

Template:cpp/thread/dcl list sleep until