std::this_thread
ISO C++ 2011 namespace for interacting with the current thread.
- Provided by: libstdc++-12-doc (Version: 12.5.0-9ubuntu1)
- Source: gcc-12
- Report a bug
ISO C++ 2011 namespace for interacting with the current thread.
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_for template<typename _Clock, typename _Duration>
void sleep_until (const chrono::time_point< _Clock,
_Duration > &__atime)
this_thread::sleep_until void yield () noexcept
Allow the implementation to schedule a different thread.
ISO C++ 2011 namespace for interacting with the current thread.
C++11 30.3.2 [thread.thread.this] Namespace this_thread.
The unique identifier of the current thread.
this_thread::sleep_for
References std::chrono::duration_cast().
Referenced by sleep_until().
this_thread::sleep_until
References sleep_for().
Allow the implementation to schedule a different thread.
Generated automatically by Doxygen for libstdc++ from the source code.