|
|
|
|
|
by dnedic
984 days ago
|
|
This won't work for: 1. Larger than word size variables 2. Out of order CPUs 3. On multicore CPUs when another core handles the signal Atomics must be used here for proper synchronization, when they are available. If not, architecture-specific mechanisms should be used. |
|
The sig_atomic_t type that is specified for that purpose and must be used, which rules out the uncertainty you're referring to in (1). It is not a type qualifier but a specifier.