LinuxDevices.com Archive Index (1999-2012) | 2013-current at LinuxGizmos.com | About  

News: Do you volatile? Should you?

Mar 30, 2005 — by Henry Kingman — from the LinuxDevices Archive

This article, by veteran Linux trainer Kevin Dankwardt, discusses “volatile,” a relatively unknown ANSI-C type modifier that ensures that the compiler generates code to reload a data item each time it is referenced. Volatile must be used with variables that may be altered asynchronously, such as by a signal handler or mapped hardware.

Do you volatile? should you?


 
This article was originally published on LinuxDevices.com and has been donated to the open source community by QuinStreet Inc. Please visit LinuxToday.com for up-to-date news and articles about Linux and open source.



Comments are closed.