|
1981 | 1981 | static unsigned int hardware_concurrency() noexcept; |
1982 | 1982 |
|
1983 | 1983 | private: |
1984 | | - stop_source ssource; // \expos |
| 1984 | + stop_source @\exposid{ssource}@; // \expos |
1985 | 1985 | }; |
1986 | 1986 | } |
1987 | 1987 | \end{codeblock} |
|
2002 | 2002 | \pnum |
2003 | 2003 | \ensures |
2004 | 2004 | \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}. |
2006 | 2006 | \end{itemdescr} |
2007 | 2007 |
|
2008 | 2008 | \indexlibraryctor{jthread}% |
|
2026 | 2026 |
|
2027 | 2027 | \pnum |
2028 | 2028 | \effects |
2029 | | -Initializes \tcode{ssource}. |
| 2029 | +Initializes \exposid{ssource}. |
2030 | 2030 | The new thread of execution executes |
2031 | 2031 | \begin{codeblock} |
2032 | 2032 | invoke(auto(std::forward<F>(f)), get_stop_token(), // for \tcode{invoke}, see \ref{func.invoke} |
|
2055 | 2055 | \pnum |
2056 | 2056 | \ensures |
2057 | 2057 | \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} |
2059 | 2059 | and \tcode{*this} represents the newly started thread. |
2060 | 2060 | \begin{note} |
2061 | 2061 | The calling thread can make a stop request only once, |
|
2087 | 2087 | \tcode{x.get_id() == id()} |
2088 | 2088 | and \tcode{get_id()} returns the value of \tcode{x.get_id()} |
2089 | 2089 | 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}} |
2091 | 2091 | 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}. |
2093 | 2093 | \end{itemdescr} |
2094 | 2094 |
|
2095 | 2095 | \indexlibrarydtor{jthread}% |
|
2125 | 2125 | \ensures |
2126 | 2126 | \tcode{get_id()} returns the value of \tcode{x.get_id()} |
2127 | 2127 | 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}} |
2129 | 2129 | prior to the assignment. |
2130 | 2130 |
|
2131 | 2131 | \pnum |
|
2253 | 2253 | \begin{itemdescr} |
2254 | 2254 | \pnum |
2255 | 2255 | \effects |
2256 | | -Equivalent to: \tcode{return ssource;} |
| 2256 | +Equivalent to: \tcode{return \exposid{ssource};} |
2257 | 2257 | \end{itemdescr} |
2258 | 2258 |
|
2259 | 2259 | \indexlibrarymember{get_stop_token}{jthread}% |
|
2264 | 2264 | \begin{itemdescr} |
2265 | 2265 | \pnum |
2266 | 2266 | \effects |
2267 | | -Equivalent to: \tcode{return ssource.get_token();} |
| 2267 | +Equivalent to: \tcode{return \exposid{ssource}.get_token();} |
2268 | 2268 | \end{itemdescr} |
2269 | 2269 |
|
2270 | 2270 | \indexlibrarymember{request_stop}{jthread}% |
|
2275 | 2275 | \begin{itemdescr} |
2276 | 2276 | \pnum |
2277 | 2277 | \effects |
2278 | | -Equivalent to: \tcode{return ssource.request_stop();} |
| 2278 | +Equivalent to: \tcode{return \exposid{ssource}.request_stop();} |
2279 | 2279 | \end{itemdescr} |
2280 | 2280 |
|
2281 | 2281 |
|
|
0 commit comments