43 lines
1.0 KiB
Markdown
43 lines
1.0 KiB
Markdown
[thread.jthread.stop]
|
|
|
|
# 32 Concurrency support library [[thread]](./#thread)
|
|
|
|
## 32.4 Threads [[thread.threads]](thread.threads#thread.jthread.stop)
|
|
|
|
### 32.4.4 Class jthread [[thread.jthread.class]](thread.jthread.class#thread.jthread.stop)
|
|
|
|
#### 32.4.4.4 Stop token handling [thread.jthread.stop]
|
|
|
|
[ð](#lib:get_stop_source,jthread)
|
|
|
|
`stop_source get_stop_source() noexcept;
|
|
`
|
|
|
|
[1](#1)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L2241)
|
|
|
|
*Effects*: Equivalent to: return ssource;
|
|
|
|
[ð](#lib:get_stop_token,jthread)
|
|
|
|
`stop_token get_stop_token() const noexcept;
|
|
`
|
|
|
|
[2](#2)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L2252)
|
|
|
|
*Effects*: Equivalent to: return ssource.get_token();
|
|
|
|
[ð](#lib:request_stop,jthread)
|
|
|
|
`bool request_stop() noexcept;
|
|
`
|
|
|
|
[3](#3)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L2263)
|
|
|
|
*Effects*: Equivalent to: return ssource.request_stop();
|