Changeset 14528


Ignore:
Timestamp:
Dec 30, 2010, 9:05:05 AM (14 years ago)
Author:
R. Matthew Emerson
Message:

Document with-interrupts-enabled. Document that unwind-protect
cleanup forms are executed as if wrapped in without-interrupts.

Location:
trunk/source/doc/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/doc/src/threads.xml

    r14474 r14528  
    21692169    </refentry>
    21702170
     2171    <refentry id="m_with-interrupts-enabled">
     2172          <indexterm zone="m_with-interrupts-enabled">
     2173            <primary>with-interrupts-enabled</primary>
     2174          </indexterm>
     2175
     2176          <refnamediv>
     2177            <refname>WITH-INTERRUPTS-ENABLED</refname>
     2178            <refpurpose>Evaluates its body in an environment in which
     2179              process-interrupt requests have immediate effect.</refpurpose>
     2180            <refclass>Macro</refclass>
     2181          </refnamediv>
     2182
     2183          <refsynopsisdiv>
     2184            <synopsis><function>with-interrupts-enabled</function>
     2185              &body; body => result</synopsis>
     2186          </refsynopsisdiv>
     2187
     2188          <refsect1>
     2189            <title>Arguments and Values</title>
     2190
     2191            <variablelist>
     2192              <varlistentry>
     2193                <term>body</term>
     2194                <listitem>
     2195                      <para>an implicit progn.</para>
     2196                </listitem>
     2197              </varlistentry>
     2198              <varlistentry>
     2199                <term>result</term>
     2200                <listitem>
     2201                      <para>the primary value returned by
     2202                        <varname>body</varname>.</para>
     2203                </listitem>
     2204              </varlistentry>
     2205            </variablelist>
     2206          </refsect1>
     2207
     2208          <refsect1>
     2209            <title>Description</title>
     2210
     2211            <para>Executes <varname>body</varname>
     2212              in an environment in which <xref linkend="f_process-interrupt"/>
     2213              requests have immediate effect.
     2214            </para>
     2215          </refsect1>
     2216    </refentry>
     2217
    21712218    <refentry id="f_make-lock">
    21722219          <indexterm zone="f_make-lock">
  • trunk/source/doc/src/using.xml

    r14399 r14528  
    32483248</refentry>
    32493249
     3250<refentry id="v_unwind-protect">
     3251  <indexterm zone="v_unwind-protect">
     3252    <primary>unwind-protect</primary>
     3253  </indexterm>
     3254 
     3255  <refnamediv>
     3256    <refname>UNWIND-PROTECT</refname>
     3257    <refpurpose>
     3258      Ensure cleanup-forms are executed.
     3259    </refpurpose>
     3260    <refclass>Special operator</refclass>
     3261  </refnamediv>
     3262
     3263  <refsynopsisdiv>
     3264    <synopsis>
     3265      <function>unwind-protect</function> protected-form {cleanup-form}*
     3266    </synopsis>
     3267  </refsynopsisdiv>
     3268
     3269  <refsect1><title>Summary</title>
     3270    <para>
     3271      In &CCL;, the cleanup forms are always executed as if they were
     3272      wrapped with <xref linkend="m_without-interrupts"/>.
     3273      To allow interrupts, use
     3274      <xref linkend="m_with-interrupts-enabled"/>.
     3275    </para>
     3276  </refsect1>
     3277</refentry>
    32503278
    32513279</sect1>
Note: See TracChangeset for help on using the changeset viewer.