Files
cppdraft_translate/cppdraft/thread/syn.md
2025-10-25 03:02:53 +03:00

956 B

[thread.syn]

32 Concurrency support library [thread]

32.4 Threads [thread.threads]

32.4.2 Header synopsis [thread.syn]

🔗

#include // see [compare.syn]namespace std {// [thread.thread.class], class threadclass thread; void swap(thread& x, thread& y) noexcept; // [thread.jthread.class], class jthreadclass jthread; // [thread.thread.this], namespace this_threadnamespace this_thread { thread::id get_id() noexcept; void yield() noexcept; template<class Clock, class Duration>void sleep_until(const chrono::time_point<Clock, Duration>& abs_time); template<class Rep, class Period>void sleep_for(const chrono::duration<Rep, Period>& rel_time); }}