cosmetics

This commit is contained in:
Frank B. Brokken 2021-12-25 15:04:22 +01:00
parent e6c6024e3c
commit 4d2fec08c7
5 changed files with 8 additions and 9 deletions

View file

@ -1,8 +1,8 @@
\sloppy
\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.7em}}
\addtolength{\textheight}{1in}
\addtolength{\textwidth}{1in}
\addtolength{\hoffset}{-0.5in}
\addtolength{\textwidth}{1.6in}
\addtolength{\hoffset}{-0.8in}
% \addtolength{\voffset}{-0.5in}
% \usepackage[hmargin={22mm,22mm}%

View file

@ -15,7 +15,7 @@ includefile(threading/threading)
subsubsect(Exceptions and join())
includefile(threading/joining)
lsubsect(THREAD)(The class std::jthread)
lsubsect(JTHREAD)(The class std::jthread)
includefile(threading/jthread)
subsubsect(std::stop_callback)

View file

@ -59,14 +59,13 @@ The following members are specific to tt(jthread), allowing other threads to
end the thread started by tt(jthread):
itemization(
ithtq(get_stop_source)()
ithtq(get_stop_source)(std::stop_source get_stop_source() noexcept)
(returns the hi(stop_token) tt(jthread's std::stop_source).)
ithtq(get_stop_token)(std::get_stop_token get_stop_token() const noexcept)
(returns the hi(stop_token) tt(jthread's std::stop_token).)
ithtq(request_stop)(bool request_top() noexcept;)
ithtq(request_stop)(bool request_stop() noexcept)
(attempts to end the thread started by the tt(jthread) object. The
function operates atomically: it can be called from multiple threads
without causing race conditions. It returns tt(true) if the stop

View file

@ -59,7 +59,7 @@ function, the second argument must be a pointer (or reference, or object) for
which the member function is called as thread function, while subsequent
arguments are passed as arguments to the member function. Here is a simple
example illustrating these options:
verbinsert(-a //main examples/memberthreads.cc)
verbinsert(//main examples/memberthreads.cc)
)
Be careful when passing local variables as arguments to thread objects: if