|
1968 | 1968 | static unsigned int hardware_concurrency() noexcept; |
1969 | 1969 |
|
1970 | 1970 | private: |
1971 | | - stop_source ssource; // \expos |
| 1971 | + stop_source @\exposid{ssource}@; // \expos |
1972 | 1972 | }; |
1973 | 1973 | } |
1974 | 1974 | \end{codeblock} |
|
1989 | 1989 | \pnum |
1990 | 1990 | \ensures |
1991 | 1991 | \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}. |
1993 | 1993 | \end{itemdescr} |
1994 | 1994 |
|
1995 | 1995 | \indexlibraryctor{jthread}% |
|
2013 | 2013 |
|
2014 | 2014 | \pnum |
2015 | 2015 | \effects |
2016 | | -Initializes \tcode{ssource}. |
| 2016 | +Initializes \exposid{ssource}. |
2017 | 2017 | The new thread of execution executes |
2018 | 2018 | \begin{codeblock} |
2019 | 2019 | invoke(auto(std::forward<F>(f)), get_stop_token(), // for \tcode{invoke}, see \ref{func.invoke} |
|
2042 | 2042 | \pnum |
2043 | 2043 | \ensures |
2044 | 2044 | \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} |
2046 | 2046 | and \tcode{*this} represents the newly started thread. |
2047 | 2047 | \begin{note} |
2048 | 2048 | The calling thread can make a stop request only once, |
|
2074 | 2074 | \tcode{x.get_id() == id()} |
2075 | 2075 | and \tcode{get_id()} returns the value of \tcode{x.get_id()} |
2076 | 2076 | 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}} |
2078 | 2078 | 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}. |
2080 | 2080 | \end{itemdescr} |
2081 | 2081 |
|
2082 | 2082 | \indexlibrarydtor{jthread}% |
|
2112 | 2112 | \ensures |
2113 | 2113 | \tcode{get_id()} returns the value of \tcode{x.get_id()} |
2114 | 2114 | 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}} |
2116 | 2116 | prior to the assignment. |
2117 | 2117 |
|
2118 | 2118 | \pnum |
|
2240 | 2240 | \begin{itemdescr} |
2241 | 2241 | \pnum |
2242 | 2242 | \effects |
2243 | | -Equivalent to: \tcode{return ssource;} |
| 2243 | +Equivalent to: \tcode{return \exposid{ssource};} |
2244 | 2244 | \end{itemdescr} |
2245 | 2245 |
|
2246 | 2246 | \indexlibrarymember{get_stop_token}{jthread}% |
|
2251 | 2251 | \begin{itemdescr} |
2252 | 2252 | \pnum |
2253 | 2253 | \effects |
2254 | | -Equivalent to: \tcode{return ssource.get_token();} |
| 2254 | +Equivalent to: \tcode{return \exposid{ssource}.get_token();} |
2255 | 2255 | \end{itemdescr} |
2256 | 2256 |
|
2257 | 2257 | \indexlibrarymember{request_stop}{jthread}% |
|
2262 | 2262 | \begin{itemdescr} |
2263 | 2263 | \pnum |
2264 | 2264 | \effects |
2265 | | -Equivalent to: \tcode{return ssource.request_stop();} |
| 2265 | +Equivalent to: \tcode{return \exposid{ssource}.request_stop();} |
2266 | 2266 | \end{itemdescr} |
2267 | 2267 |
|
2268 | 2268 |
|
|
0 commit comments