tmp/tmp_psof2jh/{from.md → to.md}
RENAMED
|
@@ -15,14 +15,13 @@ namespace std::this_thread {
|
|
| 15 |
``` cpp
|
| 16 |
thread::id this_thread::get_id() noexcept;
|
| 17 |
```
|
| 18 |
|
| 19 |
*Returns:* An object of type `thread::id` that uniquely identifies the
|
| 20 |
-
current thread of execution. No other thread of execution
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
`thread::id`.
|
| 24 |
|
| 25 |
``` cpp
|
| 26 |
void this_thread::yield() noexcept;
|
| 27 |
```
|
| 28 |
|
|
@@ -34,23 +33,23 @@ void this_thread::yield() noexcept;
|
|
| 34 |
template<class Clock, class Duration>
|
| 35 |
void sleep_until(const chrono::time_point<Clock, Duration>& abs_time);
|
| 36 |
```
|
| 37 |
|
| 38 |
*Effects:* Blocks the calling thread for the absolute
|
| 39 |
-
timeout
|
| 40 |
|
| 41 |
*Synchronization:* None.
|
| 42 |
|
| 43 |
-
*Throws:* Timeout-related exceptions
|
| 44 |
|
| 45 |
``` cpp
|
| 46 |
template<class Rep, class Period>
|
| 47 |
void sleep_for(const chrono::duration<Rep, Period>& rel_time);
|
| 48 |
```
|
| 49 |
|
| 50 |
*Effects:* Blocks the calling thread for the relative
|
| 51 |
-
timeout
|
| 52 |
|
| 53 |
*Synchronization:* None.
|
| 54 |
|
| 55 |
-
*Throws:* Timeout-related exceptions
|
| 56 |
|
|
|
|
| 15 |
``` cpp
|
| 16 |
thread::id this_thread::get_id() noexcept;
|
| 17 |
```
|
| 18 |
|
| 19 |
*Returns:* An object of type `thread::id` that uniquely identifies the
|
| 20 |
+
current thread of execution. No other thread of execution has this id
|
| 21 |
+
and this thread of execution always has this id. The object returned
|
| 22 |
+
does not compare equal to a default constructed `thread::id`.
|
|
|
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
void this_thread::yield() noexcept;
|
| 26 |
```
|
| 27 |
|
|
|
|
| 33 |
template<class Clock, class Duration>
|
| 34 |
void sleep_until(const chrono::time_point<Clock, Duration>& abs_time);
|
| 35 |
```
|
| 36 |
|
| 37 |
*Effects:* Blocks the calling thread for the absolute
|
| 38 |
+
timeout [[thread.req.timing]] specified by `abs_time`.
|
| 39 |
|
| 40 |
*Synchronization:* None.
|
| 41 |
|
| 42 |
+
*Throws:* Timeout-related exceptions [[thread.req.timing]].
|
| 43 |
|
| 44 |
``` cpp
|
| 45 |
template<class Rep, class Period>
|
| 46 |
void sleep_for(const chrono::duration<Rep, Period>& rel_time);
|
| 47 |
```
|
| 48 |
|
| 49 |
*Effects:* Blocks the calling thread for the relative
|
| 50 |
+
timeout [[thread.req.timing]] specified by `rel_time`.
|
| 51 |
|
| 52 |
*Synchronization:* None.
|
| 53 |
|
| 54 |
+
*Throws:* Timeout-related exceptions [[thread.req.timing]].
|
| 55 |
|