Skip to content

Commit 06b903a

Browse files
committed
Fixup a paper reference, provide missing manual heading IDs.
1 parent d58eaca commit 06b903a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

std_execution.bs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ for you. Much like algorithms that compose senders relieve the user from having
10121012
receiver types, algorithms that introduce concurrency and provide higher-level cancellation semantics
10131013
relieve the user from having to deal with low-level details of cancellation.
10141014

1015-
### Cancellation design summary ###
1015+
### Cancellation design summary ### {#design-cancellation-summary}
10161016

10171017
The design of cancellation described in this paper is built on top of and extends the `std::stop_token`-based
10181018
cancellation facilities added in C++20, first proposed in [[P2175R0]].
@@ -1037,7 +1037,7 @@ As the caller of `execution::connect` typically has control over the receiver ty
10371037
the `execution::get_stop_token()` CPO for that receiver type to return a stop-token that it has control over and that
10381038
it can use to communicate a stop-request to the operation once it has started.
10391039

1040-
### Support for cancellation is optional ###
1040+
### Support for cancellation is optional ### {#design-cancellation-optional}
10411041

10421042
Support for cancellation is optional, both on part of the author of the receiver and on part of the author of the sender.
10431043

@@ -1056,7 +1056,7 @@ naturally and the stop-request being made. If the operation has already complete
10561056
it can be cancelled when the stop-request is sent then the stop-request may just be ignored. An application
10571057
will typically need to be able to cope with senders that might ignore a stop-request anyway.
10581058

1059-
### Cancellation is inherently racy ###
1059+
### Cancellation is inherently racy ### {#design-cancellation-racy}
10601060

10611061
Usually, an operation will attach a stop-callback at some point inside the call to `execution::start()` so that
10621062
a subsequent stop-request will interrupt the logic.
@@ -1083,7 +1083,7 @@ receiver's completion-signalling operation to the `execution::start()` call (whi
10831083

10841084
For an example of an implementation strategy for solving these data-races see the `async_recv()` example in Appendix A.
10851085

1086-
### Cancellation design status ###
1086+
### Cancellation design status ### {#design-cancellation-status}
10871087

10881088
This paper currently includes the design for cancellation as proposed in
10891089
[[P2175R0]] - "Composable cancellation for sender-based async operations".
@@ -3847,9 +3847,9 @@ from the operation before the operation completes.
38473847
</pre>
38483848

38493849

3850-
# Appendix A - Cancellation Examples
3850+
# Appendix A - Cancellation Examples # {#appendix-a-cancellation-examples}
38513851

3852-
## Cancellation Example: Socket `async_recv()` ###
3852+
## Cancellation Example: Socket `async_recv()` ### {#appendix-a-async_recv}
38533853

38543854
To get a better feel for how this interface might be used by low-level operations see this example implementation
38553855
of a cancellable `async_recv()` operation for a Windows Socket.

0 commit comments

Comments
 (0)