title: Comparison of Win32 CMutex and Standard Library std::mutex
body: <p>Since the introduction of the <code>thread</code> library in C++11, I have been going through my code making some changes to move it away from platform specific multithreading code to portable standard library code.</p>
  
  <p>However, I'm intrigued as to whether there is a performance or functionality difference between the standard library <code>std::mutex</code> and <code>std::lock_guard&lt;std::mutex&gt;</code> and the Win32 specific <code>CMutex</code> and <code>CSingleLock</code>. </p>
  
  <p>I've no experience with profiling multithreaded code and I don't know the internals of either of the two mutex classes so I wouldn't even be able to hazard a guess.</p>