Closed hkaiser closed 1 year ago
This leads to different return values after
request_stop()
was called on the associated source object.
How so?
This leads to different return values after
request_stop()
was called on the associated source object.How so?
As mentioned in https://github.com/brycelelbach/wg21_p2300_std_execution/issues/416, after request_stop()
was called, in_place_stop_token::stop_possible()
always returns false
, while stop_token::stop_possible()
may still return true
.
The semantics of
in_place_stop_token::stop_possible
differ from those ofstd::stop_token::stop_possible
.in_place_stop_token::stop_possible
:std::stop_token::stop_possible
(see: http://eel.is/c++draft/thread.stoptoken#stoptoken.mem-2):This leads to different return values after
request_stop()
was called on the associated source object.