Are C/C++ fundamental types atomic?
<p>Are C/C++ fundamental types, like <code>int</code>, <code>double</code>, etc., atomic, e.g. threadsafe?</p>

<p>Are they free from data races; that is, if one thread writes to an object of such a type while another thread reads from it, is the behavior well-defined?</p>

<p>If not, does it depend on the compiler or something else?</p>