Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By adding the volatile qualifier, i is guaranteed to be accessed from it its original address for every iteration of the while loop.

...

Failing to use the volatile qualifier can result in race conditions in asynchronous portions of the code, causing unexpected values to be stored , and leading to possible data integrity violations.

...

Wiki Markup
\[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]\] Section 6.7.3, "Type qualifiers,"; and Section 7.14, "Signal handling <signal.h>"
\[[ISO/IEC 03|AA. C References#ISO/IEC 03]\] Section 6.7.3, "Type qualifiers"
\[[Sun 05|AA. C References#Sun 05]\] [Chapter 6, "Transitioning to ISO C"|http://docs.sun.com/source/819-3688/tguide.html#pgfId-997898]

...