div class="memdoc">

<p>Locks the mutex, blocks if already locked. </p>
<p>If a different thread already locked this mutex, the calling thread will block. If the same thread tries to lock a mutex it already owns, the behavior is undefined.</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classpmem_1_1lock__error.html" title="Custom lock error class.">lock_error</a></td><td>when an error occurs, this includes all system related er