title: std::atomic<int> decrement and comparison
body: <p>On the following code:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>std::atomic&lt;int&gt; myint; //Shared variable
  //(...)
  if( --myint == 0) {
      //Code block B
  }
  </code></pre>
  
  <p>Is it possible that more than one thread access the block I named "Code Block B"?</p>
  
  <p>Please consider that overflow will not happen, that the 'if' is being executed concurrently by more than one thread, that the only modification to <em>myint</em> in the whole program is the <em>--myint</em> inside the if and that <em>myint</em> is initialized with a positive value.</p>