Skip to content

Commit 1fea5fe

Browse files
committed
[exec.run.loop] Remove code font formatting for count and state
Fixes NB US 231-361 (C++26 CD).
1 parent d200ca8 commit 1fea5fe

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

source/exec.tex

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6489,7 +6489,8 @@
64896489
\begin{itemdescr}
64906490
\pnum
64916491
\ensures
6492-
\exposid{count} is \tcode{0} and \exposid{state} is \exposid{starting}.
6492+
The \tcode{run_loop} instance's count is 0 and
6493+
its state is starting.
64936494
\end{itemdescr}
64946495

64956496
\indexlibrarydtor{run_loop}%
@@ -6500,7 +6501,8 @@
65006501
\begin{itemdescr}
65016502
\pnum
65026503
\effects
6503-
If \exposid{count} is not \tcode{0} or if \exposid{state} is \exposid{running},
6504+
If the \tcode{run_loop} instance's count is not 0 or
6505+
if its state is running,
65046506
invokes \tcode{terminate}\iref{except.terminate}.
65056507
Otherwise, has no effects.
65066508
\end{itemdescr}
@@ -6517,13 +6519,13 @@
65176519
Blocks\iref{defns.block} until one of the following conditions is \tcode{true}:
65186520
\begin{itemize}
65196521
\item
6520-
\exposid{count} is \tcode{0} and \exposid{state} is \exposid{finishing},
6521-
in which case \exposid{pop-front} sets \exposid{state} to \exposid{finished}
6522+
The \tcode{run_loop} instance's count is 0 and its state is finishing,
6523+
in which case \exposid{pop-front} sets the state to finished
65226524
and returns \tcode{nullptr}; or
65236525
\item
6524-
\exposid{count} is greater than \tcode{0},
6526+
the \tcode{run_loop} instance's count is greater than 0,
65256527
in which case an item is removed from the front of the queue,
6526-
\exposid{count} is decremented by \tcode{1}, and
6528+
the count is decremented by \tcode{1}, and
65276529
the removed item is returned.
65286530
\end{itemize}
65296531
\end{itemdescr}
@@ -6536,7 +6538,7 @@
65366538
\pnum
65376539
\effects
65386540
Adds \tcode{item} to the back of the queue and
6539-
increments \exposid{count} by \tcode{1}.
6541+
increments the \tcode{run_loop} instance's count by 1..
65406542

65416543
\pnum
65426544
\sync
@@ -6564,13 +6566,13 @@
65646566
\begin{itemdescr}
65656567
\pnum
65666568
\expects
6567-
\exposid{state} is either \exposid{starting} or \exposid{finishing}.
6569+
The \tcode{run_loop} instance's state is either starting or finishing.
65686570

65696571
\pnum
65706572
\effects
6571-
If \exposid{state} is \exposid{starting},
6572-
sets the \exposid{state} to \exposid{running},
6573-
otherwise leaves \exposid{state} unchanged.
6573+
If the \tcode{run_loop} instance's state is starting,
6574+
sets its state to running,
6575+
otherwise leaves its state unchanged.
65746576
Then, equivalent to:
65756577
\begin{codeblock}
65766578
while (auto* op = @\exposid{pop-front}@()) {
@@ -6580,7 +6582,8 @@
65806582

65816583
\pnum
65826584
\remarks
6583-
When \exposid{state} changes, it does so without introducing data races.
6585+
When the \tcode{run_loop} instance's state changes,
6586+
it does so without introducing data races.
65846587
\end{itemdescr}
65856588

65866589
\indexlibrarymember{finish}{run_loop}%
@@ -6591,11 +6594,11 @@
65916594
\begin{itemdescr}
65926595
\pnum
65936596
\expects
6594-
\exposid{state} is either \exposid{starting} or \exposid{running}.
6597+
The \tcode{run_loop} instance's state is either starting or running.
65956598

65966599
\pnum
65976600
\effects
6598-
Changes \exposid{state} to \exposid{finishing}.
6601+
Changes the \tcode{run_loop} instance's state to finishing.
65996602

66006603
\pnum
66016604
\sync

0 commit comments

Comments
 (0)