Files
2025-10-25 03:02:53 +03:00

1.4 KiB

[stopsource.inplace.mem]

32 Concurrency support library [thread]

32.3 Stop tokens [thread.stoptoken]

32.3.9 Class inplace_stop_source [stopsource.inplace]

32.3.9.3 Member functions [stopsource.inplace.mem]

🔗

constexpr inplace_stop_token get_token() const noexcept;

1

#

Returns: A new associated inplace_stop_token object whose stop-source member is equal to this.

🔗

bool stop_requested() const noexcept;

2

#

Returns: true if the stop state inside *this has received a stop request; otherwise, false.

🔗

bool request_stop() noexcept;

3

#

Effects: Executes a stop request operation ([stoptoken.concepts]).

4

#

Postconditions: stop_requested() is true.