This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of LEWG status.
affine_on shouldn't forward the stop token to the scheduling operationSection: 33.13.3 [exec.affine.on] Status: LEWG Submitter: Dietmar Kühl Opened: 2025-08-31 Last modified: 2025-10-27
Priority: 2
View other active issues in [exec.affine.on].
View all other issues in [exec.affine.on].
View all issues with LEWG status.
Discussion:
The main purpose of affine_on is to make sure work
resumes on a specific execution context. The scheduling operation
may take some time and work may be cancelled in the meantime. If
this cancellation causes the scheduling to be cancelled work cleaning
up after the cancellation would be executed on the wrong execution
context. Thus, the stop token from the receiver's environment should
only be forwarded when connecting the sender but not
to the scheduling operation.
[2025-10-23; Reflector poll. Status changed: New → LEWG]
Set priority to 2 after reflector poll. Send to LEWG.
"This affects the cancelation behaviour so should also be seen by SG1."
[2025-10-24; Resolves US 235-363]
Proposed resolution: