Skip to content

Commit 3309ea9

Browse files
committed
FIXUP
1 parent 137caa7 commit 3309ea9

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

source/exec.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
\item
187187
once started, eventually completes exactly once
188188
with a (possibly empty) set of result datums and
189-
in exactly one of three \defnx{disposition}{dispositions}:
189+
in exactly one of three \defnx{dispositions}{disposition}:
190190
success, failure, or cancellation;
191191
\begin{itemize}
192192
\item

source/threads.tex

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -491,16 +491,6 @@
491491
are called when a stop request is first made
492492
by any associated \exposconcept{stoppable-source} object.
493493

494-
\pnum
495-
Calls to the functions \tcode{request_stop}, \tcode{stop_requested},
496-
and \tcode{stop_possible}
497-
do not introduce data races.
498-
A call to \tcode{request_stop} that returns \tcode{true}
499-
synchronizes with a call to \tcode{stop_requested}
500-
on an associated \tcode{stop_token} or \tcode{stop_source} object
501-
that returns \tcode{true}.
502-
Registration of a callback synchronizes with the invocation of that callback.
503-
504494
\pnum
505495
The types \tcode{stop_source} and \tcode{stop_token} and
506496
the class template \tcode{stop_callback} implement
@@ -526,7 +516,7 @@
526516
namespace std {
527517
// \ref{stoptoken.concepts}, stop token concepts
528518
template<class CallbackFn, class Token, class Initializer = CallbackFn>
529-
concept @\exposconcept{stoppable-callback-for}@ = @\seebelow@; // \expos
519+
concept @\exposconcept{stoppable-callback-for}@ = @\seebelow@; // \expos
530520

531521
template<class Token>
532522
concept @\libconcept{stoppable_token}@ = @\seebelow@;
@@ -535,7 +525,7 @@
535525
concept @\libconcept{unstoppable_token}@ = @\seebelow@;
536526

537527
template<class Source>
538-
concept @\exposconcept{stoppable-source}@ = @\seebelow@; // \expos
528+
concept @\exposconcept{stoppable-source}@ = @\seebelow@; // \expos
539529

540530
// \ref{stoptoken}, class \tcode{stop_token}
541531
class stop_token;
@@ -578,7 +568,7 @@
578568
checks for a callback compatible with a given \tcode{Token} type.
579569
\begin{codeblock}
580570
template<class CallbackFn, class Token, class Initializer = CallbackFn>
581-
concept @\defexposconcept{stoppable-callback-for}@ = // \expos
571+
concept @\defexposconcept{stoppable-callback-for}@ = // \expos
582572
@\libconcept{invocable}@<CallbackFn> &&
583573
@\libconcept{constructible_from}@<CallbackFn, Initializer> &&
584574
requires { typename stop_callback_for_t<Token, CallbackFn>; } &&
@@ -878,7 +868,10 @@
878868
\begin{itemdescr}
879869
\pnum
880870
\effects
881-
Equivalent to: \tcode{\exposid{stop-state}.swap(rhs.\exposid{stop-state})}.
871+
Equivalent to:
872+
\begin{codeblock}
873+
@\exposid{stop-state}@.swap(rhs.@\exposid{stop-state}@);
874+
\end{codeblock}
882875
\end{itemdescr}
883876

884877
\indexlibrarymember{stop_requested}{stop_token}%
@@ -980,7 +973,10 @@
980973
\begin{itemdescr}
981974
\pnum
982975
\effects
983-
Equivalent to \tcode{\exposid{stop-state}.swap(rhs.\exposid{stop-state})}.
976+
Equivalent to:
977+
\begin{codeblock}
978+
@\exposid{stop-state}@.swap(rhs.@\exposid{stop-state}@);
979+
\end{codeblock}
984980
\end{itemdescr}
985981

986982
\indexlibrarymember{get_token}{stop_source}%
@@ -1005,7 +1001,7 @@
10051001
\begin{itemdescr}
10061002
\pnum
10071003
\returns
1008-
\tcode{\exposid{stop-state} != nullptr}.
1004+
\tcode{\exposidnc{stop-state} != nullptr}.
10091005
\end{itemdescr}
10101006

10111007
\indexlibrarymember{stop_requested}{stop_source}%
@@ -1093,11 +1089,12 @@
10931089
\indexlibraryctor{stop_callback}%
10941090
\begin{itemdecl}
10951091
template<class Initializer>
1096-
explicit stop_callback(const stop_token& st, Initializer&& init)
1097-
noexcept(is_nothrow_constructible_v<CallbackFn, Initializer>);
1092+
explicit stop_callback(const stop_token& st, Initializer&& init)
1093+
noexcept(is_nothrow_constructible_v<CallbackFn, Initializer>);
1094+
10981095
template<class Initializer>
1099-
explicit stop_callback(stop_token&& st, Initializer&& init)
1100-
noexcept(is_nothrow_constructible_v<CallbackFn, Initializer>);
1096+
explicit stop_callback(stop_token&& st, Initializer&& init)
1097+
noexcept(is_nothrow_constructible_v<CallbackFn, Initializer>);
11011098
\end{itemdecl}
11021099

11031100
\begin{itemdescr}
@@ -1223,7 +1220,7 @@
12231220
\begin{itemdescr}
12241221
\pnum
12251222
\returns
1226-
\tcode{\exposid{stop-source} != nullptr}.
1223+
\tcode{\exposidnc{stop-source} != nullptr}.
12271224

12281225
\pnum
12291226
\begin{note}

0 commit comments

Comments
 (0)