Skip to content

Commit de60e17

Browse files
[thread.jthread.class] Exposition-only style for ssource
1 parent ef2abfa commit de60e17

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
@@ -1981,7 +1981,7 @@
19811981
static unsigned int hardware_concurrency() noexcept;
19821982

19831983
private:
1984-
stop_source ssource; // \expos
1984+
stop_source @\exposid{ssource}@; // \expos
19851985
};
19861986
}
19871987
\end{codeblock}
@@ -2002,7 +2002,7 @@
20022002
\pnum
20032003
\ensures
20042004
\tcode{get_id() == id()} is \tcode{true}
2005-
and \tcode{ssource.stop_possible()} is \tcode{false}.
2005+
and \tcode{\exposid{ssource}.stop_possible()} is \tcode{false}.
20062006
\end{itemdescr}
20072007

20082008
\indexlibraryctor{jthread}%
@@ -2026,7 +2026,7 @@
20262026

20272027
\pnum
20282028
\effects
2029-
Initializes \tcode{ssource}.
2029+
Initializes \exposid{ssource}.
20302030
The new thread of execution executes
20312031
\begin{codeblock}
20322032
invoke(auto(std::forward<F>(f)), get_stop_token(), // for \tcode{invoke}, see \ref{func.invoke}
@@ -2055,7 +2055,7 @@
20552055
\pnum
20562056
\ensures
20572057
\tcode{get_id() != id()} is \tcode{true}
2058-
and \tcode{ssource.stop_possible()} is \tcode{true}
2058+
and \tcode{\exposid{ssource}.stop_possible()} is \tcode{true}
20592059
and \tcode{*this} represents the newly started thread.
20602060
\begin{note}
20612061
The calling thread can make a stop request only once,
@@ -2087,9 +2087,9 @@
20872087
\tcode{x.get_id() == id()}
20882088
and \tcode{get_id()} returns the value of \tcode{x.get_id()}
20892089
prior to the start of construction.
2090-
\tcode{ssource} has the value of \tcode{x.ssource}
2090+
\exposid{ssource} has the value of \tcode{x.\exposid{ssource}}
20912091
prior to the start of construction
2092-
and \tcode{x.ssource.stop_possible()} is \tcode{false}.
2092+
and \tcode{x.\exposid{ssource}.stop_possible()} is \tcode{false}.
20932093
\end{itemdescr}
20942094

20952095
\indexlibrarydtor{jthread}%
@@ -2125,7 +2125,7 @@
21252125
\ensures
21262126
\tcode{get_id()} returns the value of \tcode{x.get_id()}
21272127
prior to the assignment.
2128-
\tcode{ssource} has the value of \tcode{x.ssource}
2128+
\exposid{ssource} has the value of \tcode{x.\exposid{ssource}}
21292129
prior to the assignment.
21302130

21312131
\pnum
@@ -2253,7 +2253,7 @@
22532253
\begin{itemdescr}
22542254
\pnum
22552255
\effects
2256-
Equivalent to: \tcode{return ssource;}
2256+
Equivalent to: \tcode{return \exposid{ssource};}
22572257
\end{itemdescr}
22582258

22592259
\indexlibrarymember{get_stop_token}{jthread}%
@@ -2264,7 +2264,7 @@
22642264
\begin{itemdescr}
22652265
\pnum
22662266
\effects
2267-
Equivalent to: \tcode{return ssource.get_token();}
2267+
Equivalent to: \tcode{return \exposid{ssource}.get_token();}
22682268
\end{itemdescr}
22692269

22702270
\indexlibrarymember{request_stop}{jthread}%
@@ -2275,7 +2275,7 @@
22752275
\begin{itemdescr}
22762276
\pnum
22772277
\effects
2278-
Equivalent to: \tcode{return ssource.request_stop();}
2278+
Equivalent to: \tcode{return \exposid{ssource}.request_stop();}
22792279
\end{itemdescr}
22802280

22812281

0 commit comments

Comments
 (0)