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

955 B

[stopsource.cons]

32 Concurrency support library [thread]

32.3 Stop tokens [thread.stoptoken]

32.3.5 Class stop_source [stopsource]

32.3.5.2 Constructors, copy, and assignment [stopsource.cons]

🔗

stop_source();

1

#

Effects: Initializes stop-state with a pointer to a new stop state.

2

#

Postconditions: stop_possible() is true and stop_requested() is false.

3

#

Throws: bad_alloc if memory cannot be allocated for the stop state.