mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 02:09:03 +00:00
Move </para> tag above second embedded list for Mutexes (bad rendering?)
This commit is contained in:
@@ -2608,43 +2608,43 @@ error_message describes the occurred error.</para>
|
|||||||
<literal>booleans</literal>, and <literal>numbers</literal>.
|
<literal>booleans</literal>, and <literal>numbers</literal>.
|
||||||
The returned function allows you to lock, try to lock, and
|
The returned function allows you to lock, try to lock, and
|
||||||
release the mutex. It's first and only parameter is either:
|
release the mutex. It's first and only parameter is either:
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<option><literal>"lock"</literal></option>
|
|
||||||
<para>
|
|
||||||
Make a blocking lock on the mutex. If the mutex is busy
|
|
||||||
(another thread has a lock on it), then the thread will
|
|
||||||
yield and wait. The function returns with the mutex
|
|
||||||
locked.
|
|
||||||
</para>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<option><literal>"trylock"</literal></option>
|
|
||||||
<para>
|
|
||||||
Makes a non-blocking lock on the mutex. If the mutex is
|
|
||||||
busy then it immediately returns with a return value of
|
|
||||||
<literal>false</literal>. Otherwise the mutex locks the
|
|
||||||
mutex and returns <literal>true</literal>.
|
|
||||||
</para>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<option><literal>"done"</literal></option>
|
|
||||||
<para>
|
|
||||||
Releases the mutex and allows another thread to lock it.
|
|
||||||
If the thread does not have a lock on the mutex, an
|
|
||||||
error will be raised.
|
|
||||||
</para>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<option><literal>"running"</literal></option>
|
|
||||||
<para>
|
|
||||||
Returns the thread locked on the mutex or nil. This
|
|
||||||
should only be used for debugging as it interferes
|
|
||||||
with finished threads from being collected.
|
|
||||||
</para>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
</para>
|
</para>
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<option><literal>"lock"</literal></option>
|
||||||
|
<para>
|
||||||
|
Make a blocking lock on the mutex. If the mutex is busy
|
||||||
|
(another thread has a lock on it), then the thread will
|
||||||
|
yield and wait. The function returns with the mutex
|
||||||
|
locked.
|
||||||
|
</para>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<option><literal>"trylock"</literal></option>
|
||||||
|
<para>
|
||||||
|
Makes a non-blocking lock on the mutex. If the mutex is
|
||||||
|
busy then it immediately returns with a return value of
|
||||||
|
<literal>false</literal>. Otherwise the mutex locks the
|
||||||
|
mutex and returns <literal>true</literal>.
|
||||||
|
</para>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<option><literal>"done"</literal></option>
|
||||||
|
<para>
|
||||||
|
Releases the mutex and allows another thread to lock it.
|
||||||
|
If the thread does not have a lock on the mutex, an
|
||||||
|
error will be raised.
|
||||||
|
</para>
|
||||||
|
</varlistentry>
|
||||||
|
<varlistentry>
|
||||||
|
<option><literal>"running"</literal></option>
|
||||||
|
<para>
|
||||||
|
Returns the thread locked on the mutex or nil. This
|
||||||
|
should only be used for debugging as it interferes
|
||||||
|
with finished threads from being collected.
|
||||||
|
</para>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|||||||
Reference in New Issue
Block a user