This file is indexed.

/usr/share/doc/libucommon-dev/a00042.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!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::ConditionalLock 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&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;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&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="a00214.html">ucc</a>::<a class="el" href="a00042.html">ConditionalLock</a>
  </div>
</div>
<div class="contents">
<h1>ucc::ConditionalLock Class Reference</h1><!-- doxytag: class="ucc::ConditionalLock" --><!-- doxytag: inherits="ucc::ConditionalAccess,ucc::Shared" -->
<p>An optimized and convertable shared lock.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00208_source.html">thread.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ucc::ConditionalLock:</div>
<div class="dynsection">
<div class="center"><img src="a00375.png" border="0" usemap="#ucc_1_1_conditional_lock_inherit__map" alt="Inheritance graph"/></div>
<map name="ucc_1_1_conditional_lock_inherit__map" id="ucc_1_1_conditional_lock_inherit__map">
<area shape="rect" id="node2" href="a00041.html" title="The conditional rw seperates scheduling for optizming behavior or rw locks." alt="" coords="5,83,173,112"/><area shape="rect" id="node4" href="a00040.html" title="The conditional is a common base for other thread synchronizing classes." alt="" coords="28,5,151,35"/><area shape="rect" id="node6" href="a00135.html" title="An exclusive locking protocol interface base." alt="" coords="197,83,296,112"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ucc::ConditionalLock:</div>
<div class="dynsection">
<div class="center"><img src="a00376.png" border="0" usemap="#ucc_1_1_conditional_lock_coll__map" alt="Collaboration graph"/></div>
<map name="ucc_1_1_conditional_lock_coll__map" id="ucc_1_1_conditional_lock_coll__map">
<area shape="rect" id="node2" href="a00041.html" title="The conditional rw seperates scheduling for optizming behavior or rw locks." alt="" coords="5,96,173,125"/><area shape="rect" id="node4" href="a00040.html" title="The conditional is a common base for other thread synchronizing classes." alt="" coords="28,5,151,35"/><area shape="rect" id="node6" href="a00135.html" title="An exclusive locking protocol interface base." alt="" coords="197,96,296,125"/><area shape="rect" id="node8" href="a00069.html" title="Common base class for all objects that can be formed into a linked list." alt="" coords="320,96,453,125"/><area shape="rect" id="node10" href="a00093.html" title="A common base class for all managed objects." alt="" coords="340,5,433,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="ae374d4deed36bdc27706350bd957bb06"></a><!-- doxytag: member="ucc::ConditionalLock::access" ref="ae374d4deed36bdc27706350bd957bb06" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#ae374d4deed36bdc27706350bd957bb06">access</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Acquire access (shared read) lock. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad3f81d8a9b81fd9de6d11bb566326eae"></a><!-- doxytag: member="ucc::ConditionalLock::commit" ref="ad3f81d8a9b81fd9de6d11bb566326eae" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#ad3f81d8a9b81fd9de6d11bb566326eae">commit</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Commit changes / release a modify lock. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75faaecd4a87192891607468f9a8996f"></a><!-- doxytag: member="ucc::ConditionalLock::ConditionalLock" ref="a75faaecd4a87192891607468f9a8996f" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a75faaecd4a87192891607468f9a8996f">ConditionalLock</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct conditional lock for default concurrency. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a9daadc3d99bd3cd6c8467e33e0b1496e">exclusive</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert read lock into exclusive (write/modify) access.  <a href="#a9daadc3d99bd3cd6c8467e33e0b1496e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a82001bcc1dc2a824dc00a493fdd418d4"></a><!-- doxytag: member="ucc::ConditionalLock::getReaders" ref="a82001bcc1dc2a824dc00a493fdd418d4" args="(void)" -->
unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a82001bcc1dc2a824dc00a493fdd418d4">getReaders</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of threads reading (sharing) the lock. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0c55f5cc6a5cc8d8ecaed22fb46860a2"></a><!-- doxytag: member="ucc::ConditionalLock::getWaiters" ref="a0c55f5cc6a5cc8d8ecaed22fb46860a2" args="(void)" -->
unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a0c55f5cc6a5cc8d8ecaed22fb46860a2">getWaiters</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of threads waiting to share the lock. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a01d9be1b777988d54fc35327e049c47c"></a><!-- doxytag: member="ucc::ConditionalLock::modify" ref="a01d9be1b777988d54fc35327e049c47c" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a01d9be1b777988d54fc35327e049c47c">modify</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Acquire write (exclusive modify) lock. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aae9e8cd11043e975dcc91eb0378b3c8d"></a><!-- doxytag: member="ucc::ConditionalLock::release" ref="aae9e8cd11043e975dcc91eb0378b3c8d" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#aae9e8cd11043e975dcc91eb0378b3c8d">release</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Release a shared lock. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ddcb0a7691af3c157bf5d4de3e3a5b4"></a><!-- doxytag: member="ucc::ConditionalLock::share" ref="a5ddcb0a7691af3c157bf5d4de3e3a5b4" args="(void)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a5ddcb0a7691af3c157bf5d4de3e3a5b4">share</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return an exclusive access lock back to share mode. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef02a41da85e1eeac9d7fd842e2b6acd"></a><!-- doxytag: member="ucc::ConditionalLock::~ConditionalLock" ref="aef02a41da85e1eeac9d7fd842e2b6acd" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#aef02a41da85e1eeac9d7fd842e2b6acd">~ConditionalLock</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destroy conditional lock. <br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#ae1993974657c20ef26a812b355926a0c">access</a> (<a class="el" href="a00042.html">ConditionalLock</a> &amp;lock)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience function to aqcuire a shared lock.  <a href="#ae1993974657c20ef26a812b355926a0c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a6779c6adc2215af899d8084c167626ea">commit</a> (<a class="el" href="a00042.html">ConditionalLock</a> &amp;lock)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience function to commit a modify lock.  <a href="#a6779c6adc2215af899d8084c167626ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a04441e0299c0daa33917d5b1e18425d9">exclusive</a> (<a class="el" href="a00042.html">ConditionalLock</a> &amp;lock)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience function to convert lock to exclusive mode.  <a href="#a04441e0299c0daa33917d5b1e18425d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#ad64970e0fc81f4b11fd849242c84941f">modify</a> (<a class="el" href="a00042.html">ConditionalLock</a> &amp;lock)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience function to modify lock.  <a href="#ad64970e0fc81f4b11fd849242c84941f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a5f182d14915804ed05b02e194d983e8c">release</a> (<a class="el" href="a00042.html">ConditionalLock</a> &amp;lock)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience function to release a shared lock.  <a href="#a5f182d14915804ed05b02e194d983e8c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00042.html#a7f2d8cdc302b43641cceda045d1bb519">share</a> (<a class="el" href="a00042.html">ConditionalLock</a> &amp;lock)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience function to convert lock to shared access.  <a href="#a7f2d8cdc302b43641cceda045d1bb519"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>An optimized and convertable shared lock. </p>
<p>This is a form of read/write lock that has been optimized, particularly for shared access. Support for scheduling access around writer starvation is also included. The other benefits over traditional read/write locks is that the code is a little lighter, and read (shared) locks can be converted to exclusive (write) locks to perform brief modify operations and then returned to read locks, rather than having to release and re-aquire locks to change mode. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>David Sugar &lt;<a href="mailto:dyfet@gnutelephony.org">dyfet@gnutelephony.org</a>&gt; </dd></dl>

<p>Definition at line <a class="el" href="a00208_source.html#l00792">792</a> of file <a class="el" href="a00208_source.html">thread.h</a>.</p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae1993974657c20ef26a812b355926a0c"></a><!-- doxytag: member="ucc::ConditionalLock::access" ref="ae1993974657c20ef26a812b355926a0c" args="(ConditionalLock &amp;lock)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ucc::ConditionalLock::access </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00042.html">ConditionalLock</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>lock</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience function to aqcuire a shared lock. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>lock</em>&nbsp;</td><td>to share. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00208_source.html#l00889">889</a> of file <a class="el" href="a00208_source.html">thread.h</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00042_ae1993974657c20ef26a812b355926a0c_cgraph.png" border="0" usemap="#a00042_ae1993974657c20ef26a812b355926a0c_cgraph_map" alt=""></div>
<map name="a00042_ae1993974657c20ef26a812b355926a0c_cgraph_map" id="a00042_ae1993974657c20ef26a812b355926a0c_cgraph">
<area shape="rect" id="node3" href="a00042.html#ae374d4deed36bdc27706350bd957bb06" title="Acquire access (shared read) lock." alt="" coords="260,5,463,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6779c6adc2215af899d8084c167626ea"></a><!-- doxytag: member="ucc::ConditionalLock::commit" ref="a6779c6adc2215af899d8084c167626ea" args="(ConditionalLock &amp;lock)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ucc::ConditionalLock::commit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00042.html">ConditionalLock</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>lock</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience function to commit a modify lock. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>lock</em>&nbsp;</td><td>to commit. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00208_source.html#l00875">875</a> of file <a class="el" href="a00208_source.html">thread.h</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00042_a6779c6adc2215af899d8084c167626ea_cgraph.png" border="0" usemap="#a00042_a6779c6adc2215af899d8084c167626ea_cgraph_map" alt=""></div>
<map name="a00042_a6779c6adc2215af899d8084c167626ea_cgraph_map" id="a00042_a6779c6adc2215af899d8084c167626ea_cgraph">
<area shape="rect" id="node3" href="a00042.html#ad3f81d8a9b81fd9de6d11bb566326eae" title="Commit changes / release a modify lock." alt="" coords="265,5,473,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a04441e0299c0daa33917d5b1e18425d9"></a><!-- doxytag: member="ucc::ConditionalLock::exclusive" ref="a04441e0299c0daa33917d5b1e18425d9" args="(ConditionalLock &amp;lock)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ucc::ConditionalLock::exclusive </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00042.html">ConditionalLock</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>lock</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience function to convert lock to exclusive mode. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>lock</em>&nbsp;</td><td>to convert. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00208_source.html#l00896">896</a> of file <a class="el" href="a00208_source.html">thread.h</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00042_a04441e0299c0daa33917d5b1e18425d9_cgraph.png" border="0" usemap="#a00042_a04441e0299c0daa33917d5b1e18425d9_cgraph_map" alt=""></div>
<map name="a00042_a04441e0299c0daa33917d5b1e18425d9_cgraph_map" id="a00042_a04441e0299c0daa33917d5b1e18425d9_cgraph">
<area shape="rect" id="node3" href="a00042.html#a9daadc3d99bd3cd6c8467e33e0b1496e" title="Convert read lock into exclusive (write/modify) access." alt="" coords="272,5,491,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a9daadc3d99bd3cd6c8467e33e0b1496e"></a><!-- doxytag: member="ucc::ConditionalLock::exclusive" ref="a9daadc3d99bd3cd6c8467e33e0b1496e" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ucc::ConditionalLock::exclusive </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convert read lock into exclusive (write/modify) access. </p>
<p>Schedule when other readers sharing. </p>

</div>
</div>
<a class="anchor" id="ad64970e0fc81f4b11fd849242c84941f"></a><!-- doxytag: member="ucc::ConditionalLock::modify" ref="ad64970e0fc81f4b11fd849242c84941f" args="(ConditionalLock &amp;lock)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ucc::ConditionalLock::modify </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00042.html">ConditionalLock</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>lock</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience function to modify lock. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>lock</em>&nbsp;</td><td>to acquire in write exclusive mode. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00208_source.html#l00868">868</a> of file <a class="el" href="a00208_source.html">thread.h</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00042_ad64970e0fc81f4b11fd849242c84941f_cgraph.png" border="0" usemap="#a00042_ad64970e0fc81f4b11fd849242c84941f_cgraph_map" alt=""></div>
<map name="a00042_ad64970e0fc81f4b11fd849242c84941f_cgraph_map" id="a00042_ad64970e0fc81f4b11fd849242c84941f_cgraph">
<area shape="rect" id="node3" href="a00042.html#a01d9be1b777988d54fc35327e049c47c" title="Acquire write (exclusive modify) lock." alt="" coords="256,5,459,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5f182d14915804ed05b02e194d983e8c"></a><!-- doxytag: member="ucc::ConditionalLock::release" ref="a5f182d14915804ed05b02e194d983e8c" args="(ConditionalLock &amp;lock)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ucc::ConditionalLock::release </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00042.html">ConditionalLock</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>lock</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience function to release a shared lock. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>lock</em>&nbsp;</td><td>to release. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00208_source.html#l00882">882</a> of file <a class="el" href="a00208_source.html">thread.h</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00042_a5f182d14915804ed05b02e194d983e8c_cgraph.png" border="0" usemap="#a00042_a5f182d14915804ed05b02e194d983e8c_cgraph_map" alt=""></div>
<map name="a00042_a5f182d14915804ed05b02e194d983e8c_cgraph_map" id="a00042_a5f182d14915804ed05b02e194d983e8c_cgraph">
<area shape="rect" id="node3" href="a00042.html#aae9e8cd11043e975dcc91eb0378b3c8d" title="Release a shared lock." alt="" coords="263,5,468,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7f2d8cdc302b43641cceda045d1bb519"></a><!-- doxytag: member="ucc::ConditionalLock::share" ref="a7f2d8cdc302b43641cceda045d1bb519" args="(ConditionalLock &amp;lock)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ucc::ConditionalLock::share </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00042.html">ConditionalLock</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>lock</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convenience function to convert lock to shared access. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>lock</em>&nbsp;</td><td>to convert. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="a00208_source.html#l00903">903</a> of file <a class="el" href="a00208_source.html">thread.h</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dynsection">
<div class="center"><img src="a00042_a7f2d8cdc302b43641cceda045d1bb519_cgraph.png" border="0" usemap="#a00042_a7f2d8cdc302b43641cceda045d1bb519_cgraph_map" alt=""></div>
<map name="a00042_a7f2d8cdc302b43641cceda045d1bb519_cgraph_map" id="a00042_a7f2d8cdc302b43641cceda045d1bb519_cgraph">
<area shape="rect" id="node3" href="a00042.html#a5ddcb0a7691af3c157bf5d4de3e3a5b4" title="Return an exclusive access lock back to share mode." alt="" coords="252,5,447,35"/></map>
</div>
</p>

</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:28 2010 for UCommon by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>