tmp/tmpfeqs4sru/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>
|
| 14 |
+
void sleep_until(const chrono::time_point<Clock, Duration>& abs_time);
|
| 15 |
+
template <class Rep, class Period>
|
| 16 |
+
void sleep_for(const chrono::duration<Rep, Period>& rel_time);
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
```
|
| 20 |
+
|