tmp/tmpt8kdbftz/{from.md → to.md}
RENAMED
|
@@ -23,26 +23,26 @@ namespace std {
|
|
| 23 |
jthread& operator=(const jthread&) = delete;
|
| 24 |
jthread& operator=(jthread&&) noexcept;
|
| 25 |
|
| 26 |
// [thread.jthread.mem], members
|
| 27 |
void swap(jthread&) noexcept;
|
| 28 |
-
|
| 29 |
void join();
|
| 30 |
void detach();
|
| 31 |
-
|
| 32 |
-
|
| 33 |
|
| 34 |
// [thread.jthread.stop], stop token handling
|
| 35 |
-
|
| 36 |
-
|
| 37 |
bool request_stop() noexcept;
|
| 38 |
|
| 39 |
// [thread.jthread.special], specialized algorithms
|
| 40 |
friend void swap(jthread& lhs, jthread& rhs) noexcept;
|
| 41 |
|
| 42 |
// [thread.jthread.static], static members
|
| 43 |
-
|
| 44 |
|
| 45 |
private:
|
| 46 |
stop_source ssource; // exposition only
|
| 47 |
};
|
| 48 |
}
|
|
|
|
| 23 |
jthread& operator=(const jthread&) = delete;
|
| 24 |
jthread& operator=(jthread&&) noexcept;
|
| 25 |
|
| 26 |
// [thread.jthread.mem], members
|
| 27 |
void swap(jthread&) noexcept;
|
| 28 |
+
bool joinable() const noexcept;
|
| 29 |
void join();
|
| 30 |
void detach();
|
| 31 |
+
id get_id() const noexcept;
|
| 32 |
+
native_handle_type native_handle(); // see~[thread.req.native]
|
| 33 |
|
| 34 |
// [thread.jthread.stop], stop token handling
|
| 35 |
+
stop_source get_stop_source() noexcept;
|
| 36 |
+
stop_token get_stop_token() const noexcept;
|
| 37 |
bool request_stop() noexcept;
|
| 38 |
|
| 39 |
// [thread.jthread.special], specialized algorithms
|
| 40 |
friend void swap(jthread& lhs, jthread& rhs) noexcept;
|
| 41 |
|
| 42 |
// [thread.jthread.static], static members
|
| 43 |
+
static unsigned int hardware_concurrency() noexcept;
|
| 44 |
|
| 45 |
private:
|
| 46 |
stop_source ssource; // exposition only
|
| 47 |
};
|
| 48 |
}
|