[stopsource.cons] (original) (raw)

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 trueand stop_requested() is false.

3

#

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