Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > e3d62627d1d1aab7ab1be2dd7f65a872 > files > 351

ecl-10.4.1-1.fc14.x86_64.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>mp:make-lock</title><link rel="stylesheet" href="ecl.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="The ECL manual"><link rel="up" href="ch19s02.html" title="4.2.&#160;MP Reference"><link rel="prev" href="re19.html" title="mp:giveup-lock"><link rel="next" href="re21.html" title="mp:make-process"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><code class="function">mp:make-lock</code></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re19.html">Prev</a>&#160;</td><th width="60%" align="center">4.2.&#160;MP Reference</th><td width="20%" align="right">&#160;<a accesskey="n" href="re21.html">Next</a></td></tr></table><hr></div><div class="refentry" title="mp:make-lock"><a name="ref.mp.make-lock"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p><code class="function">mp:make-lock</code> &#8212; Create a new lock.</p></div><div class="refsynopsisdiv" title="Function"><h2>Function</h2><div class="funcsynopsis"><p><code class="funcdef">(mp:make-lock</code> <var class="pdparam">&amp;key</var>) &#8658; <var class="pdparam">name</var>)</p></div><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="replaceable"><code>name</code></em></span></p></td><td><p>A symbol to name the lock. Names not be unique. It defaults
    to <code class="constant">NIL</code>.</p></td></tr></tbody></table></div></div><div class="refsect1" title="Description"><a name="id660582"></a><h2>Description</h2><p>This function creates a lock object that can be use to synchronize
  different tasks. The own is initally free and not owned by any task. Locks
  are typically implemented using Posix mutexes. When garbage collected, a lock
  is automatically freed.</p></div><div class="refsect1" title="Example"><a name="id660594"></a><h2>Example</h2><p>See <a class="xref" href="re28.html" title="mp:with-lock"><code class="function">mp:with-lock</code></a>.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re19.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch19s02.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="re21.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><code class="function">mp:giveup-lock</code>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<code class="function">mp:make-process</code></td></tr></table></div></body></html>