Volatile (computer programming): Difference between revisions

Content deleted Content added
Line 203:
 
===C++11===
According to the [[C++11]] ISO Standard, the volatile keyword is only meant for use for hardware access; do not use it for inter-thread communication. For inter-thread communication, the standard library provides <code>std::atomic<T></code> templates.<ref>{{cite web |title=volatile (C++)|url= https://msdn.microsoft.com/en-us/library/12a04hfd.aspx|work=Microsoft MSDN}}</ref>
 
==In Java==