title: Set a value to POD within 1 atomic operation in VC++
body: <p>I am trying to find a way to set a POD (int, byte, long etc.) as atomic operation.
  Notice std::atomic is not good for me because it is not POD.</p>
  
  <p>I also looked in VC intrensic functions, but didn't find exactly what I wanted (guess due to lack of documentation).</p>
  
  <p>Does anyone know how to do it?</p>
  
  <p>EDIT: I did not know that std::atomic is POD, therefore my question was wrong, I'll reask it in a new question. I don't want to delete or alter this question because the answer is really good an informative. Thanks!!! My actual question: <a href="https://stackoverflow.com/questions/23719457/set-a-value-to-pod-that-doesnt-have-constructor-desctructor-within-1-atomic-o">Set a value to POD (that doesn&#39;t have constructor/desctructor) within 1 atomic operation in VC++</a></p>