std::this_thread(3cxx)
Hey bestie π you've landed on std::this_thread(3cxx), the libstdc++ manual page for the ISO C++ 2011 namespace that handles interacting with the current thread. Yes, the current thread β main character energy only. β¨
π NAME π
std::this_thread β ISO C++ 2011 namespace for interacting with the current thread.
β¨ SYNOPSIS β¨
π§ Functions π§
Here's the whole squad, no cap:
thread::id get_id () noexceptβ The unique identifier of the current thread.template<typename _Rep , typename _Period > void sleep_for (const chrono::duration< _Rep, _Period > &__rtime)βthis_thread::sleep_fortemplate<typename _Clock , typename _Duration > void sleep_until (const chrono::time_point< _Clock, _Duration > &__atime)βthis_thread::sleep_untilvoid yield () noexceptβ Allow the implementation to schedule a different thread.
π Detailed Description π
std::this_thread is the ISO C++ 2011 namespace for interacting with the current thread. That's the whole vibe: current thread, current moment, current you. π
Standards receipt, bestie: C++11 30.3.2 [thread.thread.this] Namespace this_thread.
π Function Documentation π
π¦ get_id
thread::id std::this_thread::get_id () [inline], [noexcept]
The unique identifier of the current thread. Iconic. β¨
π¦ sleep_for
template<typename _Rep , typename _Period > void std::this_thread::sleep_for (const chrono::duration< _Rep, _Period > & __rtime) [inline]
this_thread::sleep_for
Referenced by sleep_until().
π¦ sleep_until
template<typename _Clock , typename _Duration > void std::this_thread::sleep_until (const chrono::time_point< _Clock, _Duration > & __atime) [inline]
this_thread::sleep_until
References sleep_for().
π¦ yield
void std::this_thread::yield () [inline], [noexcept]
Allow the implementation to schedule a different thread.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
Source/version: libstdc++. Footer tag: std::this_thread(3cxx). Date: the original footer doesn't list one, so I'm not inventing it, bestie β periodt. π«Ά
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms