just::thread Complete C++ Standard Thread Library by Just Software Solutions

Documentation Home >> Headers >> <thread> Header

The <thread> header provides facilities for managing and identifying threads, and functions for making the current thread sleep.

namespace std
{
    class thread;

    template<typename Allocator>
    class std::vector<std::thread,Allocator>;

    namespace this_thread
    {
        thread::id get_id();
        
        void yield();

        template<typename Rep,typename Period>
        void sleep_for(std::chrono::duration<Rep,Period> sleep_duration);

        template<typename Clock,typename Duration>
        void sleep_until(std::chrono::time_point<Clock,Duration> wake_time);
    }
}
See Also