Skip to content

Commit 1bbd739

Browse files
[thread.jthread.class] Exposition-only style for ssource
1 parent 50b86c5 commit 1bbd739

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/threads.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@
19681968
static unsigned int hardware_concurrency() noexcept;
19691969

19701970
private:
1971-
stop_source ssource; // \expos
1971+
stop_source @\exposid{ssource}@; // \expos
19721972
};
19731973
}
19741974
\end{codeblock}
@@ -1989,7 +1989,7 @@
19891989
\pnum
19901990
\ensures
19911991
\tcode{get_id() == id()} is \tcode{true}
1992-
and \tcode{ssource.stop_possible()} is \tcode{false}.
1992+
and \tcode{\exposid{ssource}.stop_possible()} is \tcode{false}.
19931993
\end{itemdescr}
19941994

19951995
\indexlibraryctor{jthread}%
@@ -2013,7 +2013,7 @@
20132013

20142014
\pnum
20152015
\effects
2016-
Initializes \tcode{ssource}.
2016+
Initializes \exposid{ssource}.
20172017
The new thread of execution executes
20182018
\begin{codeblock}
20192019
invoke(auto(std::forward<F>(f)), get_stop_token(), // for \tcode{invoke}, see \ref{func.invoke}
@@ -2042,7 +2042,7 @@
20422042
\pnum
20432043
\ensures
20442044
\tcode{get_id() != id()} is \tcode{true}
2045-
and \tcode{ssource.stop_possible()} is \tcode{true}
2045+
and \tcode{\exposid{ssource}.stop_possible()} is \tcode{true}
20462046
and \tcode{*this} represents the newly started thread.
20472047
\begin{note}
20482048
The calling thread can make a stop request only once,
@@ -2074,9 +2074,9 @@
20742074
\tcode{x.get_id() == id()}
20752075
and \tcode{get_id()} returns the value of \tcode{x.get_id()}
20762076
prior to the start of construction.
2077-
\tcode{ssource} has the value of \tcode{x.ssource}
2077+
\exposid{ssource} has the value of \tcode{x.\exposid{ssource}}
20782078
prior to the start of construction
2079-
and \tcode{x.ssource.stop_possible()} is \tcode{false}.
2079+
and \tcode{x.\exposid{ssource}.stop_possible()} is \tcode{false}.
20802080
\end{itemdescr}
20812081

20822082
\indexlibrarydtor{jthread}%
@@ -2112,7 +2112,7 @@
21122112
\ensures
21132113
\tcode{get_id()} returns the value of \tcode{x.get_id()}
21142114
prior to the assignment.
2115-
\tcode{ssource} has the value of \tcode{x.ssource}
2115+
\exposid{ssource} has the value of \tcode{x.\exposid{ssource}}
21162116
prior to the assignment.
21172117

21182118
\pnum
@@ -2240,7 +2240,7 @@
22402240
\begin{itemdescr}
22412241
\pnum
22422242
\effects
2243-
Equivalent to: \tcode{return ssource;}
2243+
Equivalent to: \tcode{return \exposid{ssource};}
22442244
\end{itemdescr}
22452245

22462246
\indexlibrarymember{get_stop_token}{jthread}%
@@ -2251,7 +2251,7 @@
22512251
\begin{itemdescr}
22522252
\pnum
22532253
\effects
2254-
Equivalent to: \tcode{return ssource.get_token();}
2254+
Equivalent to: \tcode{return \exposid{ssource}.get_token();}
22552255
\end{itemdescr}
22562256

22572257
\indexlibrarymember{request_stop}{jthread}%
@@ -2262,7 +2262,7 @@
22622262
\begin{itemdescr}
22632263
\pnum
22642264
\effects
2265-
Equivalent to: \tcode{return ssource.request_stop();}
2265+
Equivalent to: \tcode{return \exposid{ssource}.request_stop();}
22662266
\end{itemdescr}
22672267

22682268

0 commit comments

Comments
 (0)