[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();
Effects: Initializes stop-state with a pointer to a new stop state.
Postconditions: stop_possible() is trueand stop_requested() is false.
Throws: bad_alloc if memory cannot be allocated for the stop state.