/usr/share/doc/libucommon-dev/a00087.html is in libucommon-doc 3.2.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>UCommon: ucc::mutex::gaurd Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="classes.html"><span>Data Structure Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="a00214.html">ucc</a>::<a class="el" href="a00086.html">mutex</a>::<a class="el" href="a00087.html">gaurd</a>
</div>
</div>
<div class="contents">
<h1>ucc::mutex::gaurd Class Reference</h1><!-- doxytag: class="ucc::mutex::gaurd" -->
<p>Gaurd class to apply scope based mutex locking to objects.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="a00208_source.html">thread.h</a>></code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00087.html#afd8a20316515e0ae91bf9effd5723367">gaurd</a> (void *object)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a gaurd for a specific object. <a href="#afd8a20316515e0ae91bf9effd5723367"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00087.html#a32c35b101d27eb2ee7e764d5b4832537">gaurd</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create an unitialized instance of gaurd. <a href="#a32c35b101d27eb2ee7e764d5b4832537"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00087.html#a41a49cb6b2371ea53ab3f1198e90a729">operator=</a> (void *<a class="el" href="a00015.html">pointer</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set gaurd to mutex lock a new object. <a href="#a41a49cb6b2371ea53ab3f1198e90a729"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a519450f08eab87545894a643840e8cc1"></a><!-- doxytag: member="ucc::mutex::gaurd::release" ref="a519450f08eab87545894a643840e8cc1" args="(void)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00087.html#a519450f08eab87545894a643840e8cc1">release</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Prematurely release a gaurd. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00087.html#a7f48d47cb44fb40dfcacea5a3b8d1ee4">set</a> (void *object)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set gaurd to mutex lock a new object. <a href="#a7f48d47cb44fb40dfcacea5a3b8d1ee4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a81ec7482c5fa1905749a5192e555a0c0"></a><!-- doxytag: member="ucc::mutex::gaurd::~gaurd" ref="a81ec7482c5fa1905749a5192e555a0c0" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="a00087.html#a81ec7482c5fa1905749a5192e555a0c0">~gaurd</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Release mutex when gaurd falls out of scope. <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Gaurd class to apply scope based mutex locking to objects. </p>
<p>The mutex is located from the mutex pool rather than contained in the target object, and the lock is released when the gaurd object falls out of scope. This is essentially an automation mechanism for <a class="el" href="a00086.html#aa4543989fcc66e9718ea9df53d373f64" title="Specify pointer/object/resource to gaurd protect.">mutex::protect</a>. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>David Sugar <<a href="mailto:dyfet@gnutelephony.org">dyfet@gnutelephony.org</a>> </dd></dl>
<p>Definition at line <a class="el" href="a00208_source.html#l01108">1108</a> of file <a class="el" href="a00208_source.html">thread.h</a>.</p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a32c35b101d27eb2ee7e764d5b4832537"></a><!-- doxytag: member="ucc::mutex::gaurd::gaurd" ref="a32c35b101d27eb2ee7e764d5b4832537" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::mutex::gaurd::gaurd </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create an unitialized instance of gaurd. </p>
<p>Usually used with a gaurd = operator. </p>
</div>
</div>
<a class="anchor" id="afd8a20316515e0ae91bf9effd5723367"></a><!-- doxytag: member="ucc::mutex::gaurd::gaurd" ref="afd8a20316515e0ae91bf9effd5723367" args="(void *object)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::mutex::gaurd::gaurd </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>object</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Construct a gaurd for a specific object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>to gaurd. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a41a49cb6b2371ea53ab3f1198e90a729"></a><!-- doxytag: member="ucc::mutex::gaurd::operator=" ref="a41a49cb6b2371ea53ab3f1198e90a729" args="(void *pointer)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::mutex::gaurd::operator= </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>pointer</em></td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set gaurd to mutex lock a new object. </p>
<p>If a lock is currently held, it is released. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>pointer</em> </td><td>to object to gaurd. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="a00208_source.html#l01148">1148</a> of file <a class="el" href="a00208_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a7f48d47cb44fb40dfcacea5a3b8d1ee4"></a><!-- doxytag: member="ucc::mutex::gaurd::set" ref="a7f48d47cb44fb40dfcacea5a3b8d1ee4" args="(void *object)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::mutex::gaurd::set </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>object</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Set gaurd to mutex lock a new object. </p>
<p>If a lock is currently held, it is released. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>to gaurd. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>ucommon/<a class="el" href="a00208_source.html">thread.h</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 6 08:22:35 2010 for UCommon by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
|