mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
cosmetics
This commit is contained in:
parent
e6c6024e3c
commit
4d2fec08c7
5 changed files with 8 additions and 9 deletions
|
@ -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}%
|
||||
|
|
|
@ -12,12 +12,12 @@ class Dir
|
|||
DIR *d_dirPtr = 0;
|
||||
Dir *d_recursive = 0;
|
||||
|
||||
char const *d_entry; // returned by entry()
|
||||
std::string d_path; // Dir's directory name, ending in '/'
|
||||
char const *d_entry; // returned by entry()
|
||||
std::string d_path; // Dir's directory name, ending in '/'
|
||||
std::string d_entryPath;
|
||||
|
||||
public:
|
||||
Dir(char const *dir); // dir: the name of the directory to visit
|
||||
Dir(char const *dir); // dir: the name of the directory to visit
|
||||
~Dir();
|
||||
|
||||
char const *entry();
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue