class="keyword">val</span> create</span> : <code class="type">unit -&gt; <a href="Mutex.html#TYPEt">t</a></code></pre><div class="info">
Return a new mutex.<br>
</div>
<pre><span id="VALlock"><span class="keyword">val</span> lock</span> : <code class="type"><a href="Mutex.html#TYPEt">t</a> -&gt; unit</code></pre><div class="info">
Lock the given mutex. Only one thread can have the mutex locked
   at any time. A thread that attempts to lock a mutex already locked
   by another thread will suspend until the o