title: Atomically exchange pointer with nullptr
body: <p>How can I do the following operations in single atomic operation? Is that possible?</p>
  
  <pre><code> LARGE_INTEGER* ptr; // field
  
   void method()
   {
         LARGE_INTEGER* local = ptr;
         ptr = nullptr;
   }
  </code></pre>
  
  <p>So I want to store pointer from field into local pointer and immediately set that field to <code>nullptr</code>. </p>
  
  <p>In other words, I want to move pointer from field into local variable in single atomic operation.</p>