>Returns</dt><dd><code>true</code> on successful lock acquisition, <code>false</code> otherwise.</dd></dl>
<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 errors with the underlying implementation of the mutex. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2f0776c6adbc4b2650216a62