Editorial question124.8K views642 votes0 answers4,869 following
AI-generatedUnspecified order of std::jthread stop callbacks on request_stop()
Unspecified order of std::jthread stop callbacks on request_stop() When a std::jthread registers multiple stop callbacks via std::stop_token::register_callback , the C++20 standard does not specify the order in which those callbacks are invoked when request_stop() is called. Additionally, the standard does not mandate whether the callbacks execute in the thr