summaryrefslogtreecommitdiff
path: root/doc/html/recursive_timed_mutex.html
diff options
context:
space:
mode:
authorDouglas Gregor <doug.gregor@gmail.com>2005-07-31 16:48:16 +0000
committerDouglas Gregor <doug.gregor@gmail.com>2005-07-31 16:48:16 +0000
commit6c009ef3685caff213316319b827264c5c1489e5 (patch)
treec1305562bc74292e8daefff2313c18d081ba408a /doc/html/recursive_timed_mutex.html
parented6bc8f4c0884495823b25c470838d8094b12446 (diff)
downloadboost-6c009ef3685caff213316319b827264c5c1489e5.tar.gz
Move 1.33.0 docs over to the branch
[SVN r30340]
Diffstat (limited to 'doc/html/recursive_timed_mutex.html')
-rw-r--r--doc/html/recursive_timed_mutex.html144
1 files changed, 144 insertions, 0 deletions
diff --git a/doc/html/recursive_timed_mutex.html b/doc/html/recursive_timed_mutex.html
new file mode 100644
index 0000000000..d269179817
--- /dev/null
+++ b/doc/html/recursive_timed_mutex.html
@@ -0,0 +1,144 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Class recursive_timed_mutex</title>
+<link rel="stylesheet" href="boostbook.css" type="text/css">
+<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
+<link rel="start" href="index.html" title="The Boost C++ Libraries">
+<link rel="up" href="threads/reference.html#id1172185" title="Header &lt;boost/thread/recursive_mutex.hpp&gt;">
+<link rel="prev" href="recursive_try_mutex.html" title="Class recursive_try_mutex">
+<link rel="next" href="id1149596.html" title="Type read_write_scheduling_policy">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table cellpadding="2" width="100%">
+<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../boost.png"></td>
+<td align="center"><a href="../../index.htm">Home</a></td>
+<td align="center"><a href="../../libs/libraries.htm">Libraries</a></td>
+<td align="center"><a href="../../people/people.htm">People</a></td>
+<td align="center"><a href="../../more/faq.htm">FAQ</a></td>
+<td align="center"><a href="../../more/index.htm">More</a></td>
+</table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="recursive_try_mutex.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="threads/reference.html#id1172185"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="id1149596.html"><img src="images/next.png" alt="Next"></a>
+</div>
+<div class="refentry" lang="en">
+<a name="recursive_timed_mutex"></a><div class="titlepage"></div>
+<div class="refnamediv">
+<h2><span class="refentrytitle">Class recursive_timed_mutex</span></h2>
+<p>boost::recursive_timed_mutex &#8212; <p>The <a href="recursive_timed_mutex.html" title="Class recursive_timed_mutex">recursive_timed_mutex</a> class is a model of the
+ <a href="threads/concepts.html#threads.concepts.TimedMutex" title="TimedMutex Concept">TimedMutex</a> concept.</p></p>
+</div>
+<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
+<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">
+<span class="bold"><strong>class</strong></span> recursive_timed_mutex : <span class="bold"><strong>private</strong></span> boost::noncopyable <span class="emphasis"><em>// Exposition only</em></span>
+{
+<span class="bold"><strong>public</strong></span>:
+  <span class="emphasis"><em>// types</em></span>
+  <span class="bold"><strong>typedef</strong></span> <span class="emphasis"><em>implementation-defined</em></span> scoped_lock;      
+  <span class="bold"><strong>typedef</strong></span> <span class="emphasis"><em>implementation-defined</em></span> scoped_try_lock;  
+  <span class="bold"><strong>typedef</strong></span> <span class="emphasis"><em>implementation-defined</em></span> scoped_timed_lock;
+
+  <span class="emphasis"><em>// <a href="recursive_timed_mutex.html#recursive_timed_mutexconstruct-copy-destruct">construct/copy/destruct</a></em></span>
+  <a href="recursive_timed_mutex.html#id1106070-bb">recursive_timed_mutex</a>();
+  <a href="recursive_timed_mutex.html#id1005769-bb">~recursive_timed_mutex</a>();
+};</pre></div>
+<div class="refsect1" lang="en">
+<a name="id1560957"></a><h2>Description</h2>
+<p>The <a href="recursive_timed_mutex.html" title="Class recursive_timed_mutex">recursive_timed_mutex</a> class is a model of the
+ <a href="threads/concepts.html#threads.concepts.TimedMutex" title="TimedMutex Concept">TimedMutex</a> concept.
+ It should be used to synchronize access to shared resources using
+ <a href="threads/concepts.html#threads.concepts.recursive-locking-strategy" title="Recursive Locking Strategy">Recursive</a>
+ locking mechanics.</p>
+<p>For classes that model related mutex concepts, see
+ <a href="recursive_mutex.html" title="Class recursive_mutex">recursive_mutex</a> and <a href="recursive_try_mutex.html" title="Class recursive_try_mutex">recursive_try_mutex</a>.</p>
+<p>For <a href="threads/concepts.html#threads.concepts.unspecified-locking-strategy" title="Unspecified Locking Strategy">Unspecified</a>
+ locking mechanics, see <a href="mutex.html" title="Class mutex">mutex</a>,
+ <a href="try_mutex.html" title="Class try_mutex">try_mutex</a>, and <a href="timed_mutex.html" title="Class timed_mutex">timed_mutex</a>.
+ </p>
+<p>The <a href="recursive_timed_mutex.html" title="Class recursive_timed_mutex">recursive_timed_mutex</a> class supplies the following typedefs,
+ which model the specified locking strategies:
+
+ </p>
+<div class="table">
+<a name="id1561049"></a><p class="title"><b>Table 12.25. Supported Lock Types</b></p>
+<table class="table" summary="Supported Lock Types">
+<colgroup>
+<col>
+<col>
+</colgroup>
+<thead><tr>
+<th align="left">Lock Name</th>
+<th align="left">Lock Concept</th>
+</tr></thead>
+<tbody>
+<tr>
+<td align="left">scoped_lock</td>
+<td align="left"><a href="threads/concepts.html#threads.concepts.ScopedLock" title="ScopedLock Concept">ScopedLock</a></td>
+</tr>
+<tr>
+<td align="left">scoped_try_lock</td>
+<td align="left"><a href="threads/concepts.html#threads.concepts.ScopedTryLock" title="ScopedTryLock Concept">ScopedTryLock</a></td>
+</tr>
+<tr>
+<td align="left">scoped_timed_lock</td>
+<td align="left"><a href="threads/concepts.html#threads.concepts.ScopedTimedLock" title="ScopedTimedLock Concept">ScopedTimedLock</a></td>
+</tr>
+</tbody>
+</table>
+</div>
+<p>The <a href="recursive_timed_mutex.html" title="Class recursive_timed_mutex">recursive_timed_mutex</a> class uses a
+ <a href="threads/concepts.html#threads.concepts.recursive-locking-strategy" title="Recursive Locking Strategy">Recursive</a>
+ locking strategy, so attempts to recursively lock a
+ <a href="recursive_timed_mutex.html" title="Class recursive_timed_mutex">recursive_timed_mutex</a> object
+ succeed and an internal "lock count" is maintained.
+ Attempts to unlock a <a href="recursive_mutex.html" title="Class recursive_mutex">recursive_mutex</a> object
+ by threads that don't own a lock on it result in
+ <span class="bold"><strong>undefined behavior</strong></span>.</p>
+<p>Like all
+ <a href="threads/concepts.html#threads.concepts.mutex-models" title="Mutex Models">mutex models</a>
+ in , <a href="recursive_timed_mutex.html" title="Class recursive_timed_mutex">recursive_timed_mutex</a> leaves the
+ <a href="threads/concepts.html#threads.concepts.sheduling-policies" title="Scheduling Policies">scheduling policy</a>
+ as <a href="threads/concepts.html#threads.concepts.unspecified-scheduling-policy" title="Unspecified Policy">Unspecified</a>.
+ Programmers should make no assumptions about the order in which
+ waiting threads acquire a lock.</p>
+<div class="refsect2" lang="en">
+<a name="id1561177"></a><h3>
+<a name="recursive_timed_mutexconstruct-copy-destruct"></a><code class="computeroutput">recursive_timed_mutex</code> construct/copy/destruct</h3>
+<div class="orderedlist"><ol type="1">
+<li>
+<pre class="literallayout"><a name="id1106070-bb"></a>recursive_timed_mutex();</pre>
+<p><b xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision"><span class="term">Effects</span></b>:
+
+ Constructs a <a href="recursive_timed_mutex.html" title="Class recursive_timed_mutex">recursive_timed_mutex</a> object.
+ <br><b xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision"><span class="term">Postconditions</span></b>:
+
+ <code class="computeroutput">*this</code> is in an unlocked state.
+ </p>
+</li>
+<li>
+<pre class="literallayout"><a name="id1005769-bb"></a>~recursive_timed_mutex();</pre>
+<p><b xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision"><span class="term">Effects</span></b>:
+
+ Destroys a <a href="recursive_timed_mutex.html" title="Class recursive_timed_mutex">recursive_timed_mutex</a> object.<br><b xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision"><span class="term">Requires</span></b>:
+
+ <code class="computeroutput">*this</code> is in an unlocked state.<br><b xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision"><span class="term">Notes</span></b>:
+
+ <span class="bold"><strong>Danger:</strong></span> Destruction of a
+ locked mutex is a serious programming error resulting in undefined
+ behavior such as a program crash.</p>
+</li>
+</ol></div>
+</div>
+</div>
+</div>
+<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
+<td align="left"></td>
+<td align="right"><small>Copyright © 2001-2003 William E. Kempf</small></td>
+</tr></table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="recursive_try_mutex.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="threads/reference.html#id1172185"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="id1149596.html"><img src="images/next.png" alt="Next"></a>
+</div>
+</body>
+</html>