|
796 | 796 | \indextext{behavior!on receipt of signal}%
|
797 | 797 | \indextext{signal}%
|
798 | 798 | \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} |
800 | 800 | 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. |
802 | 802 | \begin{note} When a signal is received for another reason, the execution of the
|
803 | 803 | signal handler is usually unsequenced with respect to the rest of the program.
|
804 | 804 | \end{note}
|
|
1080 | 1080 | have more than one thread of execution.
|
1081 | 1081 |
|
1082 | 1082 | \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. |
1087 | 1086 |
|
1088 | 1087 | \rSec2[intro.races]{Data races}
|
1089 | 1088 |
|
|
1395 | 1394 | differently as a result must perform an undefined operation. \end{note}
|
1396 | 1395 |
|
1397 | 1396 | \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 |
1399 | 1398 | result in a data race if both occur in the same thread, even if one or more
|
1400 | 1399 | occurs in a signal handler. For each signal handler invocation, evaluations
|
1401 | 1400 | performed by the thread invoking a signal handler can be divided into two
|
1402 | 1401 | groups \placeholder{A} and \placeholder{B}, such that no evaluations in
|
1403 | 1402 | \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 |
1405 | 1404 | all evaluations in \placeholder{A} happened before the execution of the signal
|
1406 | 1405 | handler and the execution of the signal handler happened before all evaluations
|
1407 | 1406 | in \placeholder{B}.
|
|
0 commit comments