It's pretty common to see declarations such as:
static volatile sig_atomic_t caught_signal = 0;
C99 defines sig_atomic_t as a "... (possibly volatile-qualified) integer
type of an object that can be accessed as an atomic entity, even in the
presence of asynchronous interrupts."
Does this mean that the use of "volatile" in the above declaration is
redundant? (It sure sounds that way to me.)
TIA
--
=============== =============== =============== =============== ============
Ian Pilcher i.pilcher@comca st.net
=============== =============== =============== =============== ============
static volatile sig_atomic_t caught_signal = 0;
C99 defines sig_atomic_t as a "... (possibly volatile-qualified) integer
type of an object that can be accessed as an atomic entity, even in the
presence of asynchronous interrupts."
Does this mean that the use of "volatile" in the above declaration is
redundant? (It sure sounds that way to me.)
TIA
--
=============== =============== =============== =============== ============
Ian Pilcher i.pilcher@comca st.net
=============== =============== =============== =============== ============
Comment