std::this_thread - Man Page

ISO C++ 2011 namespace for interacting with the current thread.

Synopsis

Functions

thread::id get_id () noexcept
this_thread::get_id
template<typename _Rep , typename _Period > void sleep_for (const chrono::duration< _Rep, _Period > &__rtime)
this_thread::sleep_for
template<typename _Clock , typename _Duration > void sleep_until (const chrono::time_point< _Clock, _Duration > &__atime)
this_thread::sleep_until
void yield () noexcept
this_thread::yield

Detailed Description

ISO C++ 2011 namespace for interacting with the current thread.

C++11 30.3.2 [thread.thread.this] Namespace this_thread.

Function Documentation

thread::id std::this_thread::get_id () [inline], [noexcept]

this_thread::get_id

Definition at line 307 of file std_thread.h.

void std::this_thread::yield () [inline], [noexcept]

this_thread::yield

Definition at line 320 of file std_thread.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Info

Wed Feb 10 2021 libstdc++