This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

11
cppdraft/thread/syn.md Normal file
View File

@@ -0,0 +1,11 @@
[thread.syn]
# 32 Concurrency support library [[thread]](./#thread)
## 32.4 Threads [[thread.threads]](thread.threads#thread.syn)
### 32.4.2 Header <thread> synopsis [thread.syn]
[🔗](#header:%3cthread%3e)
#include <compare> // see [[compare.syn]](compare.syn "17.12.1Header <compare> synopsis")namespace std {// [[thread.thread.class]](thread.thread.class "32.4.3Class thread"), class threadclass thread; void swap(thread& x, thread& y) noexcept; // [[thread.jthread.class]](thread.jthread.class "32.4.4Class jthread"), class jthreadclass jthread; // [[thread.thread.this]](thread.thread.this "32.4.5Namespace this_­thread"), 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); }}