tmp/tmp680x6xki/{from.md → to.md}
RENAMED
|
@@ -1,13 +1,19 @@
|
|
| 1 |
### Header `<thread>` synopsis <a id="thread.syn">[[thread.syn]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
|
|
|
|
|
|
|
|
|
| 4 |
namespace std {
|
| 5 |
class thread;
|
| 6 |
|
| 7 |
void swap(thread& x, thread& y) noexcept;
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
namespace this_thread {
|
| 10 |
thread::id get_id() noexcept;
|
| 11 |
|
| 12 |
void yield() noexcept;
|
| 13 |
template<class Clock, class Duration>
|
|
|
|
| 1 |
### Header `<thread>` synopsis <a id="thread.syn">[[thread.syn]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
#include <compare> // see [compare.syn]
|
| 5 |
+
#include <initializer_list> // see [initializer.list.syn]
|
| 6 |
+
|
| 7 |
namespace std {
|
| 8 |
class thread;
|
| 9 |
|
| 10 |
void swap(thread& x, thread& y) noexcept;
|
| 11 |
|
| 12 |
+
// [thread.jthread.class] class jthread
|
| 13 |
+
class jthread;
|
| 14 |
+
|
| 15 |
namespace this_thread {
|
| 16 |
thread::id get_id() noexcept;
|
| 17 |
|
| 18 |
void yield() noexcept;
|
| 19 |
template<class Clock, class Duration>
|