Skip to content

Latest commit

 

History

History
59 lines (34 loc) · 860 Bytes

CppVolatile.md

File metadata and controls

59 lines (34 loc) · 860 Bytes

 

 

 

 

 

 

volatile is a keyword to specify a variable can change its value without code making it so, for example the time of a (physical) computer clock: its value is changed by the CPU.

 

Consider never using the volatile keyword, unless directly interfacing with hardware [1].

 

 

 

 

 

 

  1. Joint Strike Fighter Air Vehicle C++ Coding Standards for the System Development and Demonstration Program. Document Number 2RDU00001 Rev C. December 2005. AV Rule 205: 'The volatile keyword shall not be used unless directly interfacing with hardware.'