Skip to content

Commit 5ee7f40

Browse files
jensmaurerzygoloid
authored andcommitted
[intro.multithread] add 'std' to standard library names (#1003)
remove redundant description of same-thread signal handler execution Fixes #285.
1 parent c9189b9 commit 5ee7f40

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

source/intro.tex

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -796,9 +796,9 @@
796796
\indextext{behavior!on receipt of signal}%
797797
\indextext{signal}%
798798
\pnum
799-
If a signal handler is executed as a result of a call to the \tcode{raise}
799+
If a signal handler is executed as a result of a call to the \tcode{std::raise}
800800
function, then the execution of the handler is sequenced after the invocation
801-
of the \tcode{raise} function and before its return.
801+
of the \tcode{std::raise} function and before its return.
802802
\begin{note} When a signal is received for another reason, the execution of the
803803
signal handler is usually unsequenced with respect to the rest of the program.
804804
\end{note}
@@ -1080,10 +1080,9 @@
10801080
have more than one thread of execution.
10811081

10821082
\pnum
1083-
A signal handler that is executed as a result of a call to the \tcode{raise}
1084-
function belongs to the same thread of execution as the call to the
1085-
\tcode{raise} function. Otherwise it is unspecified which thread of execution
1086-
contains a signal handler invocation.
1083+
For a signal handler that is not executed as a result of a call to the
1084+
\tcode{std::raise} function, it is unspecified which thread of execution
1085+
contains the signal handler invocation.
10871086

10881087
\rSec2[intro.races]{Data races}
10891088

@@ -1395,13 +1394,13 @@
13951394
differently as a result must perform an undefined operation. \end{note}
13961395

13971396
\pnum
1398-
Two accesses to the same object of type \tcode{volatile sig_atomic_t} do not
1397+
Two accesses to the same object of type \tcode{volatile std::sig_atomic_t} do not
13991398
result in a data race if both occur in the same thread, even if one or more
14001399
occurs in a signal handler. For each signal handler invocation, evaluations
14011400
performed by the thread invoking a signal handler can be divided into two
14021401
groups \placeholder{A} and \placeholder{B}, such that no evaluations in
14031402
\placeholder{B} happen before evaluations in \placeholder{A}, and the
1404-
evaluations of such \tcode{volatile sig_atomic_t} objects take values as though
1403+
evaluations of such \tcode{volatile std::sig_atomic_t} objects take values as though
14051404
all evaluations in \placeholder{A} happened before the execution of the signal
14061405
handler and the execution of the signal handler happened before all evaluations
14071406
in \placeholder{B}.

0 commit comments

Comments
 (0)