Skip to content

Commit ab9114b

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

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
@@ -6485,7 +6485,8 @@
64856485
\begin{itemdescr}
64866486
\pnum
64876487
\ensures
6488-
\exposid{count} is \tcode{0} and \exposid{state} is \exposid{starting}.
6488+
The \tcode{run_loop} instance's count is 0 and
6489+
its state is starting.
64896490
\end{itemdescr}
64906491

64916492
\indexlibrarydtor{run_loop}%
@@ -6496,7 +6497,8 @@
64966497
\begin{itemdescr}
64976498
\pnum
64986499
\effects
6499-
If \exposid{count} is not \tcode{0} or if \exposid{state} is \exposid{running},
6500+
If the \tcode{run_loop} instance's count is not 0 or
6501+
if its state is running,
65006502
invokes \tcode{terminate}\iref{except.terminate}.
65016503
Otherwise, has no effects.
65026504
\end{itemdescr}
@@ -6513,13 +6515,13 @@
65136515
Blocks\iref{defns.block} until one of the following conditions is \tcode{true}:
65146516
\begin{itemize}
65156517
\item
6516-
\exposid{count} is \tcode{0} and \exposid{state} is \exposid{finishing},
6517-
in which case \exposid{pop-front} sets \exposid{state} to \exposid{finished}
6518+
The \tcode{run_loop} instance's count is 0 and its state is finishing,
6519+
in which case \exposid{pop-front} sets the state to finished
65186520
and returns \tcode{nullptr}; or
65196521
\item
6520-
\exposid{count} is greater than \tcode{0},
6522+
the \tcode{run_loop} instance's count is greater than 0,
65216523
in which case an item is removed from the front of the queue,
6522-
\exposid{count} is decremented by \tcode{1}, and
6524+
the count is decremented by \tcode{1}, and
65236525
the removed item is returned.
65246526
\end{itemize}
65256527
\end{itemdescr}
@@ -6532,7 +6534,7 @@
65326534
\pnum
65336535
\effects
65346536
Adds \tcode{item} to the back of the queue and
6535-
increments \exposid{count} by \tcode{1}.
6537+
increments the \tcode{run_loop} instance's count by 1..
65366538

65376539
\pnum
65386540
\sync
@@ -6560,13 +6562,13 @@
65606562
\begin{itemdescr}
65616563
\pnum
65626564
\expects
6563-
\exposid{state} is either \exposid{starting} or \exposid{finishing}.
6565+
The \tcode{run_loop} instance's state is either starting or finishing.
65646566

65656567
\pnum
65666568
\effects
6567-
If \exposid{state} is \exposid{starting},
6568-
sets the \exposid{state} to \exposid{running},
6569-
otherwise leaves \exposid{state} unchanged.
6569+
If the \tcode{run_loop} instance's state is starting,
6570+
sets the state to running,
6571+
otherwise leaves the state unchanged.
65706572
Then, equivalent to:
65716573
\begin{codeblock}
65726574
while (auto* op = @\exposid{pop-front}@()) {
@@ -6576,7 +6578,8 @@
65766578

65776579
\pnum
65786580
\remarks
6579-
When \exposid{state} changes, it does so without introducing data races.
6581+
When the \tcode{run_loop} instance's state changes,
6582+
it does so without introducing data races.
65806583
\end{itemdescr}
65816584

65826585
\indexlibrarymember{finish}{run_loop}%
@@ -6587,11 +6590,11 @@
65876590
\begin{itemdescr}
65886591
\pnum
65896592
\expects
6590-
\exposid{state} is either \exposid{starting} or \exposid{running}.
6593+
The \tcode{run_loop} instance's state is either starting or running.
65916594

65926595
\pnum
65936596
\effects
6594-
Changes \exposid{state} to \exposid{finishing}.
6597+
Changes the \tcode{run_loop} instance's state to finishing.
65956598

65966599
\pnum
65976600
\sync

0 commit comments

Comments
 (0)