title: Can a bool read/write operation be not atomic on x86?
body: <p>Say we have two threads, one is reading a bool in a loop and another can toggle it at certain times. Personally I think this should be atomic because <code>sizeof(bool)</code> in C++ is 1 byte and you don't read/write bytes partially but I want to be 100% sure.</p>
  
  <p>So yes or no?</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>Also for future reference, does the same apply to <code>int</code>?</p>