logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::this_thread - ISO C++ 2011 namespace for interacting with the current thread.

Author

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

                                                    libstdc++                             std::this_thread(3cxx)

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::idstd::this_thread::get_id()[inline],[noexcept]
       The unique identifier of the current thread.

   template<typename_Rep,typename_Period>voidstd::this_thread::sleep_for(constchrono::duration<_Rep,_Period>&__rtime)[inline]
       this_thread::sleep_for

       Referenced by sleep_until().

   template<typename_Clock,typename_Duration>voidstd::this_thread::sleep_until(constchrono::time_point<_Clock,_Duration>&__atime)[inline]
       this_thread::sleep_until

       References sleep_for().

   voidstd::this_thread::yield()[inline],[noexcept]
       Allow the implementation to schedule a different thread.

Name

       std::this_thread - ISO C++ 2011 namespace for interacting with the current thread.

Synopsis

Functionsthread::idget_id () noexcept
           The unique identifier of the current thread.
       template<typename _Rep , typename_Period > voidsleep_for (const chrono::duration< _Rep, _Period >
           &__rtime)
           this_thread::sleep_for
       template<typename_Clock , typename_Duration > voidsleep_until (const chrono::time_point< _Clock,
           _Duration > &__atime)
           this_thread::sleep_until
       voidyield () noexcept
           Allow the implementation to schedule a different thread.

See Also