Skip to content

Commit a640d6b

Browse files
authored
Update thread-functions.md
Let's go the other way. For declaration, let's make them simple.
1 parent d813e39 commit a640d6b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/standard-library/thread-functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The `<thread>` header provides the following functions:
1414
Uniquely identifies the current thread of execution.
1515

1616
```cpp
17-
thread::id this_thread::get_id() noexcept;
17+
thread::id get_id() noexcept;
1818
```
1919

2020
### Return Value
@@ -44,7 +44,7 @@ Blocks the calling thread.
4444

4545
```cpp
4646
template <class Rep, class Period>
47-
void this_thread::sleep_for(const chrono::duration<Rep, Period>& Rel_time);
47+
void sleep_for(const chrono::duration<Rep, Period>& Rel_time);
4848
```
4949
5050
### Parameters
@@ -62,7 +62,7 @@ Blocks the calling thread at least until the specified time.
6262
6363
```cpp
6464
template <class Clock, class Duration>
65-
void this_thread::sleep_until(const chrono::time_point<Clock, Duration>& Abs_time);
65+
void sleep_until(const chrono::time_point<Clock, Duration>& Abs_time);
6666
```
6767

6868
### Parameters
@@ -99,7 +99,7 @@ The function calls `Left.swap(Right)`.
9999
Signals the operating system to run other threads, even if the current thread would ordinarily continue to run.
100100
101101
```cpp
102-
inline void this_thread::yield() noexcept;
102+
inline void yield() noexcept;
103103
```
104104

105105
## See also

0 commit comments

Comments
 (0)