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

32 Concurrency support library [thread]

32.4 Threads [thread.threads]

32.4.4 Class jthread [thread.jthread.class]

32.4.4.4 Stop token handling [thread.jthread.stop]

🔗

stop_source get_stop_source() noexcept;

1

#

Effects: Equivalent to: return ssource;

🔗

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();