[thread.jthread.stop] (original) (raw)

32 Thread support library [thread]

32.4 Threads [thread.threads]

32.4.3 Class jthread [thread.jthread.class]

32.4.3.3 Stop token handling [thread.jthread.stop]

🔗

[[nodiscard]] stop_source get_stop_source() noexcept;

1

#

Effects:Equivalent to: return ssource;

🔗

[[nodiscard]] stop_token get_stop_token() const noexcept;

2

#

Effects:Equivalent to: return ssource.get_­token();

🔗

bool request_stop() noexcept;

3

#

Effects:Equivalent to: return ssource.request_­stop();