/usr/share/doc/libucommon-dev/a00137.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 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | <!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::shared_lock 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="a00137.html">shared_lock</a>
</div>
</div>
<div class="contents">
<h1>ucc::shared_lock Class Reference</h1><!-- doxytag: class="ucc::shared_lock" -->
<p>A kind of smart pointer object to support shared locking protocol.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="a00185_source.html">access.h</a>></code></p>
<div class="dynheader">
Collaboration diagram for ucc::shared_lock:</div>
<div class="dynsection">
<div class="center"><img src="a00526.png" border="0" usemap="#ucc_1_1shared__lock_coll__map" alt="Collaboration graph"/></div>
<map name="ucc_1_1shared__lock_coll__map" id="ucc_1_1shared__lock_coll__map">
<area shape="rect" id="node2" href="a00135.html" title="An exclusive locking protocol interface base." alt="" coords="20,5,119,35"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<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"><a class="anchor" id="a15749931af8157aa75ffb2c31886f04e"></a><!-- doxytag: member="ucc::shared_lock::exclusive" ref="a15749931af8157aa75ffb2c31886f04e" args="(void)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00137.html#a15749931af8157aa75ffb2c31886f04e">exclusive</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Call exclusive access on referenced objects protocol. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00137.html#ad42365edeec55e751200a0929e0639b8">operator bool</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Test if the reference holds an active lock. <a href="#ad42365edeec55e751200a0929e0639b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00137.html#a418ab923593f604bef5defadbc65cc87">operator!</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Test if the reference holds an active lock. <a href="#a418ab923593f604bef5defadbc65cc87"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00137.html#a6e0e44ddc59639b9f3f37f3944accf34">release</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Release a held lock programatically. <a href="#a6e0e44ddc59639b9f3f37f3944accf34"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac950f008e8a47b4889465d618819400a"></a><!-- doxytag: member="ucc::shared_lock::share" ref="ac950f008e8a47b4889465d618819400a" args="(void)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00137.html#ac950f008e8a47b4889465d618819400a">share</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Restore shared access on referenced objects protocol. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00137.html#a3509550f4906fd9db7195d7f3805982b">shared_lock</a> (<a class="el" href="a00135.html">Shared</a> *object)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create an instance of an exclusive object reference. <a href="#a3509550f4906fd9db7195d7f3805982b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5a3e80e7b26849a935eb14188b4fb62c"></a><!-- doxytag: member="ucc::shared_lock::~shared_lock" ref="a5a3e80e7b26849a935eb14188b4fb62c" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="a00137.html#a5a3e80e7b26849a935eb14188b4fb62c">~shared_lock</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy reference to shared locked object, release lock. <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A kind of smart pointer object to support shared locking protocol. </p>
<p>This object initiates a shared lock for the object being referenced when it is instanciated, and releases the shared lock when it is destroyed. You would pass the pointer an object that has the <a class="el" href="a00135.html" title="An exclusive locking protocol interface base.">Shared</a> as a base class. </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="a00185_source.html#l00172">172</a> of file <a class="el" href="a00185_source.html">access.h</a>.</p>
<hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a3509550f4906fd9db7195d7f3805982b"></a><!-- doxytag: member="ucc::shared_lock::shared_lock" ref="a3509550f4906fd9db7195d7f3805982b" args="(Shared *object)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::shared_lock::shared_lock </td>
<td>(</td>
<td class="paramtype"><a class="el" href="a00135.html">Shared</a> * </td>
<td class="paramname"> <em>object</em></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create an instance of an exclusive object reference. </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>containing <a class="el" href="a00052.html" title="An exclusive locking protocol interface base.">Exclusive</a> base class protocol to lock. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad42365edeec55e751200a0929e0639b8"></a><!-- doxytag: member="ucc::shared_lock::operator bool" ref="ad42365edeec55e751200a0929e0639b8" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ucc::shared_lock::operator bool </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Test if the reference holds an active lock. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if locking an object. </dd></dl>
<p>Definition at line <a class="el" href="a00185_source.html#l00202">202</a> of file <a class="el" href="a00185_source.html">access.h</a>.</p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00137_ad42365edeec55e751200a0929e0639b8_cgraph.png" border="0" usemap="#a00137_ad42365edeec55e751200a0929e0639b8_cgraph_map" alt=""></div>
<map name="a00137_ad42365edeec55e751200a0929e0639b8_cgraph_map" id="a00137_ad42365edeec55e751200a0929e0639b8_cgraph">
<area shape="rect" id="node3" href="a00214.html#a72818707e51af1a21b83b8ea39b95daa" title="Convenience function to exclusively lock an object through it's protocol." alt="" coords="277,5,355,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a418ab923593f604bef5defadbc65cc87"></a><!-- doxytag: member="ucc::shared_lock::operator!" ref="a418ab923593f604bef5defadbc65cc87" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool ucc::shared_lock::operator! </td>
<td>(</td>
<td class="paramname"></td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Test if the reference holds an active lock. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if is not locking an object. </dd></dl>
<p>Definition at line <a class="el" href="a00185_source.html#l00195">195</a> of file <a class="el" href="a00185_source.html">access.h</a>.</p>
<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00137_a418ab923593f604bef5defadbc65cc87_cgraph.png" border="0" usemap="#a00137_a418ab923593f604bef5defadbc65cc87_cgraph_map" alt=""></div>
<map name="a00137_a418ab923593f604bef5defadbc65cc87_cgraph_map" id="a00137_a418ab923593f604bef5defadbc65cc87_cgraph">
<area shape="rect" id="node3" href="a00214.html#a72818707e51af1a21b83b8ea39b95daa" title="Convenience function to exclusively lock an object through it's protocol." alt="" coords="251,5,328,35"/></map>
</div>
</p>
</div>
</div>
<a class="anchor" id="a6e0e44ddc59639b9f3f37f3944accf34"></a><!-- doxytag: member="ucc::shared_lock::release" ref="a6e0e44ddc59639b9f3f37f3944accf34" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void ucc::shared_lock::release </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Release a held lock programatically. </p>
<p>This can be used to de-reference the object being share locked without having to wait for the destructor to be called when the <a class="el" href="a00137.html" title="A kind of smart pointer object to support shared locking protocol.">shared_lock</a> falls out of scope. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>ucommon/<a class="el" href="a00185_source.html">access.h</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Tue Jul 6 08:22:45 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>
|