This file is indexed.

/usr/share/doc/libglobus-common-dev/html/group__globus__cond.html is in libglobus-common-doc 14.5-1.

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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<!-- THIS FILE IS AUTOMATICALLY GENERATED FROM THE GLOBUS SOURCE CODE
     DO NOT MODIFY.
-->
<title>Globus Reference Manual</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('group__globus__cond.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Condition Variables</div>  </div>
<div class="ingroups"><a class="el" href="group__globus__thread.html">Threading</a></div></div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for Condition Variables:</div>
<div class="dyncontent">
<center><table><tr><td><img src="group__globus__cond.png" border="0" alt="" usemap="#group____globus____cond"/>
<map name="group____globus____cond" id="group____globus____cond">
<area shape="rect" id="node1" href="group__globus__thread.html" title="The Globus runtime includes support for portably creating threads on POSIX and Windows systems..." alt="" coords="7,5,84,35"/></map>
</td></tr></table></center>
</div>
<h2><a name="nested-classes"></a>
Data Structures</h2>
<ul>
<li>union <a class="el" href="unionglobus__cond__t.html">globus_cond_t</a>
<dl class="el"><dd class="mdescRight">Condition variable.  <a href="unionglobus__cond__t.html#details">More...</a><br/></dl><li>union <a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a>
<dl class="el"><dd class="mdescRight">Condition variable attribute.  <a href="unionglobus__condattr__t.html#details">More...</a><br/></dl></ul>
<h2><a name="func-members"></a>
Functions</h2>
<ul>
<li>int <a class="el" href="group__globus__cond.html#ga1c074938c3f7c436bb6c3248a698533a">globus_cond_init</a> (<a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *cond, <a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *attr)
<li>int <a class="el" href="group__globus__cond.html#ga4eb0f26fc152d2c2ec956cfde24e4190">globus_cond_destroy</a> (<a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *cond)
<li>int <a class="el" href="group__globus__cond.html#ga9b58106e5b1b2545ab45db0e3e4f98b0">globus_cond_wait</a> (<a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *cond, <a class="el" href="unionglobus__mutex__t.html">globus_mutex_t</a> *mutex)
<li>int <a class="el" href="group__globus__cond.html#gaaeabb30d3449c1d693b02241f92fd6b5">globus_cond_timedwait</a> (<a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *cond, <a class="el" href="unionglobus__mutex__t.html">globus_mutex_t</a> *mutex, globus_abstime_t *abstime)
<li>int <a class="el" href="group__globus__cond.html#ga05a56b1f671782a6a2c0d2c72292dd47">globus_cond_signal</a> (<a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *cond)
<li>int <a class="el" href="group__globus__cond.html#ga380d237b678089096a9e23487b20393f">globus_cond_broadcast</a> (<a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *cond)
<li>int <a class="el" href="group__globus__cond.html#ga2d3d2973d1d31d574ea3eb524bea0304">globus_condattr_init</a> (<a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *cond_attr)
<li>int <a class="el" href="group__globus__cond.html#ga0a0ed173728c392dc6778ec913c40c31">globus_condattr_destroy</a> (<a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *cond_attr)
<li>int <a class="el" href="group__globus__cond.html#gacca6f5cb093ac7aed78c91416f85843f">globus_condattr_setspace</a> (<a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *cond_attr, int space)
<li>int <a class="el" href="group__globus__cond.html#gaacfdc80dc9721a8cd2f8ebe9b999f46a">globus_condattr_getspace</a> (<a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *cond_attr, int *space)
</ul>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>The <a class="el" href="unionglobus__cond__t.html" title="Condition variable.">globus_cond_t</a> provides condition variables for signalling events between threads interested in particular state. One or many threads may wait on a condition variable until it is signalled, at which point they can attempt to lock a mutex related to that condition's state and process the event.</p>
<p>In a non-threaded model, the condition variable wait operations are used to poll the event driver to handle any operations that have been scheduled for execution by the globus_callback system or I/O system. In this way, applications written to use those systems to handle nonblocking operations will work with either a threaded or nonthreaded runtime choice. </p>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga1c074938c3f7c436bb6c3248a698533a"></a><!-- doxytag: member="globus_thread.c::globus_cond_init" ref="ga1c074938c3f7c436bb6c3248a698533a" args="(globus_cond_t *cond, globus_condattr_t *attr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#ga1c074938c3f7c436bb6c3248a698533a">globus_cond_init</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *&#160;</td>
          <td class="paramname"><em>attr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialize a condition variableThe <a class="el" href="group__globus__cond.html#ga1c074938c3f7c436bb6c3248a698533a" title="Initialize a condition variableThe globus_cond_init() function creates a condition variable that can ...">globus_cond_init()</a> function creates a condition variable that can be used for event signalling between threads. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond</td><td>Pointer to the condition variable to initialize. </td></tr>
    <tr><td class="paramname">attr</td><td>Condition variable attributes.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>On success, <a class="el" href="group__globus__cond.html#ga1c074938c3f7c436bb6c3248a698533a" title="Initialize a condition variableThe globus_cond_init() function creates a condition variable that can ...">globus_cond_init()</a> initializes the condition variable and returns GLOBUS_SUCCESS. Otherwise, a non-0 value is returned. </dd></dl>

</div>
</div>
<a class="anchor" id="ga4eb0f26fc152d2c2ec956cfde24e4190"></a><!-- doxytag: member="globus_thread.c::globus_cond_destroy" ref="ga4eb0f26fc152d2c2ec956cfde24e4190" args="(globus_cond_t *cond)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#ga4eb0f26fc152d2c2ec956cfde24e4190">globus_cond_destroy</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destroy a condition variable. </p>
<p>The <a class="el" href="group__globus__cond.html#ga4eb0f26fc152d2c2ec956cfde24e4190" title="Destroy a condition variable.">globus_cond_destroy()</a> function destroys the condition variable pointed to by its <em>cond</em> parameter. After a condition variable is destroyed it may no longer be used unless it is again initialized by <a class="el" href="group__globus__cond.html#ga1c074938c3f7c436bb6c3248a698533a" title="Initialize a condition variableThe globus_cond_init() function creates a condition variable that can ...">globus_cond_init()</a>.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond</td><td>The condition variable to destroy. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>On success, <a class="el" href="group__globus__cond.html#ga4eb0f26fc152d2c2ec956cfde24e4190" title="Destroy a condition variable.">globus_cond_destroy()</a> returns GLOBUS_SUCCESS. Otherwise, a non-zero implementation-specific error value is returned. </dd></dl>

</div>
</div>
<a class="anchor" id="ga9b58106e5b1b2545ab45db0e3e4f98b0"></a><!-- doxytag: member="globus_thread.c::globus_cond_wait" ref="ga9b58106e5b1b2545ab45db0e3e4f98b0" args="(globus_cond_t *cond, globus_mutex_t *mutex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#ga9b58106e5b1b2545ab45db0e3e4f98b0">globus_cond_wait</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="unionglobus__mutex__t.html">globus_mutex_t</a> *&#160;</td>
          <td class="paramname"><em>mutex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Wait for a condition to be signalled. </p>
<p>The <a class="el" href="group__globus__cond.html#ga9b58106e5b1b2545ab45db0e3e4f98b0" title="Wait for a condition to be signalled.">globus_cond_wait()</a> function atomically unlocks the mutex pointed to by the <em>mutex</em> parameter and blocks the current thread until the condition variable pointed to by <em>cond</em> is signalled by either <a class="el" href="group__globus__cond.html#ga05a56b1f671782a6a2c0d2c72292dd47" title="Signal a condition to a thread.">globus_cond_signal()</a> or <a class="el" href="group__globus__cond.html#ga380d237b678089096a9e23487b20393f" title="Signal a condition to multiple threads.">globus_cond_broadcast()</a>. Behavior is undefined if <a class="el" href="group__globus__cond.html#ga9b58106e5b1b2545ab45db0e3e4f98b0" title="Wait for a condition to be signalled.">globus_cond_wait()</a> is called with the mutex pointed to by the <em>mutex</em> variable unlocked.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond</td><td>The condition variable to wait for. </td></tr>
    <tr><td class="paramname">mutex</td><td>The mutex associated with the condition state.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>On success, <a class="el" href="group__globus__cond.html#ga9b58106e5b1b2545ab45db0e3e4f98b0" title="Wait for a condition to be signalled.">globus_cond_wait()</a> unlocks the mutex and blocks the current thread until it has been signalled, returning GLOBUS_SUCCES. Otherwise, <a class="el" href="group__globus__cond.html#ga9b58106e5b1b2545ab45db0e3e4f98b0" title="Wait for a condition to be signalled.">globus_cond_wait()</a> returns an implementation-specific non-zero error value. </dd></dl>

</div>
</div>
<a class="anchor" id="gaaeabb30d3449c1d693b02241f92fd6b5"></a><!-- doxytag: member="globus_thread.c::globus_cond_timedwait" ref="gaaeabb30d3449c1d693b02241f92fd6b5" args="(globus_cond_t *cond, globus_mutex_t *mutex, globus_abstime_t *abstime)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#gaaeabb30d3449c1d693b02241f92fd6b5">globus_cond_timedwait</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="unionglobus__mutex__t.html">globus_mutex_t</a> *&#160;</td>
          <td class="paramname"><em>mutex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">globus_abstime_t *&#160;</td>
          <td class="paramname"><em>abstime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Wait for a condition to be signalled. </p>
<p>The <a class="el" href="group__globus__cond.html#gaaeabb30d3449c1d693b02241f92fd6b5" title="Wait for a condition to be signalled.">globus_cond_timedwait()</a> function atomically unlocks the mutex pointed to by the <em>mutex</em> parameter and blocks the current thread until either the condition variable pointed to by <em>cond</em> is signalled by another thread or the current time exceeds the value pointed to by the <em>abstime</em> parameter. If the timeout occurs before the condition is signalled, <a class="el" href="group__globus__cond.html#gaaeabb30d3449c1d693b02241f92fd6b5" title="Wait for a condition to be signalled.">globus_cond_timedwait()</a> returns ETIMEDOUT. Behavior is undefined if <a class="el" href="group__globus__cond.html#gaaeabb30d3449c1d693b02241f92fd6b5" title="Wait for a condition to be signalled.">globus_cond_timedwait()</a> is called with the mutex pointed to by the <em>mutex</em> variable unlocked.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond</td><td>The condition variable to wait for. </td></tr>
    <tr><td class="paramname">mutex</td><td>The mutex associated with the condition state. </td></tr>
    <tr><td class="paramname">abstime</td><td>The absolute time to wait until.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>On success, <a class="el" href="group__globus__cond.html#gaaeabb30d3449c1d693b02241f92fd6b5" title="Wait for a condition to be signalled.">globus_cond_timedwait()</a> unlocks the mutex and blocks the current thread until it has been signalled, returning GLOBUS_SUCCES. If a timeout occurs before signal, <a class="el" href="group__globus__cond.html#gaaeabb30d3449c1d693b02241f92fd6b5" title="Wait for a condition to be signalled.">globus_cond_timedwait()</a> unlocks the mutex and returns ETIMEDOUT. Otherwise, <a class="el" href="group__globus__cond.html#gaaeabb30d3449c1d693b02241f92fd6b5" title="Wait for a condition to be signalled.">globus_cond_timedwait()</a> returns an implementation-specific non-zero error value. </dd></dl>

</div>
</div>
<a class="anchor" id="ga05a56b1f671782a6a2c0d2c72292dd47"></a><!-- doxytag: member="globus_thread.c::globus_cond_signal" ref="ga05a56b1f671782a6a2c0d2c72292dd47" args="(globus_cond_t *cond)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#ga05a56b1f671782a6a2c0d2c72292dd47">globus_cond_signal</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal a condition to a thread. </p>
<p>The <a class="el" href="group__globus__cond.html#ga05a56b1f671782a6a2c0d2c72292dd47" title="Signal a condition to a thread.">globus_cond_signal()</a> function signals a condition as occurring. This will unblock at least one thread waiting for that condition.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond</td><td>A pointer to the condition variable to signal. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Upon success, <a class="el" href="group__globus__cond.html#ga05a56b1f671782a6a2c0d2c72292dd47" title="Signal a condition to a thread.">globus_cond_signal()</a> returns GLOBUS_SUCCESS. If an error occurs, <a class="el" href="group__globus__cond.html#ga05a56b1f671782a6a2c0d2c72292dd47" title="Signal a condition to a thread.">globus_cond_signal()</a> returns an implementation-specific non-zero error code. </dd></dl>

</div>
</div>
<a class="anchor" id="ga380d237b678089096a9e23487b20393f"></a><!-- doxytag: member="globus_thread.c::globus_cond_broadcast" ref="ga380d237b678089096a9e23487b20393f" args="(globus_cond_t *cond)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#ga380d237b678089096a9e23487b20393f">globus_cond_broadcast</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__cond__t.html">globus_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal a condition to multiple threads. </p>
<p>The <a class="el" href="group__globus__cond.html#ga05a56b1f671782a6a2c0d2c72292dd47" title="Signal a condition to a thread.">globus_cond_signal()</a> function signals a condition as occurring. This will unblock all threads waiting for that condition.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond</td><td>A pointer to the condition variable to signal. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Upon success, <a class="el" href="group__globus__cond.html#ga380d237b678089096a9e23487b20393f" title="Signal a condition to multiple threads.">globus_cond_broadcast()</a> returns GLOBUS_SUCCESS. If an error occurs, <a class="el" href="group__globus__cond.html#ga380d237b678089096a9e23487b20393f" title="Signal a condition to multiple threads.">globus_cond_broadcast()</a> returns an implementation-specific non-zero error code. </dd></dl>

</div>
</div>
<a class="anchor" id="ga2d3d2973d1d31d574ea3eb524bea0304"></a><!-- doxytag: member="globus_thread.c::globus_condattr_init" ref="ga2d3d2973d1d31d574ea3eb524bea0304" args="(globus_condattr_t *cond_attr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#ga2d3d2973d1d31d574ea3eb524bea0304">globus_condattr_init</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *&#160;</td>
          <td class="paramname"><em>cond_attr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialize a condition variable attribute. </p>
<p>The <a class="el" href="group__globus__cond.html#ga2d3d2973d1d31d574ea3eb524bea0304" title="Initialize a condition variable attribute.">globus_condattr_init()</a> function initializes the condition variable attribute structure pointed to by its <em>cond_attr</em> parameter to the system default values.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond_attr</td><td>Attribute structure to initialize.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Upon success, <a class="el" href="group__globus__cond.html#ga2d3d2973d1d31d574ea3eb524bea0304" title="Initialize a condition variable attribute.">globus_condattr_init()</a> returns GLOBUS_SUCCESS and modifies the attribute pointed to by <em>cond_attr</em>. If an error occurs, <a class="el" href="group__globus__cond.html#ga2d3d2973d1d31d574ea3eb524bea0304" title="Initialize a condition variable attribute.">globus_condattr_init()</a> returns an implementation-specific non-zero error code. </dd></dl>

</div>
</div>
<a class="anchor" id="ga0a0ed173728c392dc6778ec913c40c31"></a><!-- doxytag: member="globus_thread.c::globus_condattr_destroy" ref="ga0a0ed173728c392dc6778ec913c40c31" args="(globus_condattr_t *cond_attr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#ga0a0ed173728c392dc6778ec913c40c31">globus_condattr_destroy</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *&#160;</td>
          <td class="paramname"><em>cond_attr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destroy a condition attribute. </p>
<p>The <a class="el" href="group__globus__cond.html#ga0a0ed173728c392dc6778ec913c40c31" title="Destroy a condition attribute.">globus_condattr_destroy()</a> function destroys the condition variable attribute structure pointed to by its <em>cond_attr</em> parameter.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond_attr</td><td>Attribute structure to destroy.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Upon success, <a class="el" href="group__globus__cond.html#ga0a0ed173728c392dc6778ec913c40c31" title="Destroy a condition attribute.">globus_condattr_destroy()</a> returns GLOBUS_SUCCESS and modifies the attribute pointed to by <em>cond_attr</em>. If an error occurs, <a class="el" href="group__globus__cond.html#ga0a0ed173728c392dc6778ec913c40c31" title="Destroy a condition attribute.">globus_condattr_destroy()</a> returns an implementation-specific non-zero error code. </dd></dl>

</div>
</div>
<a class="anchor" id="gacca6f5cb093ac7aed78c91416f85843f"></a><!-- doxytag: member="globus_thread.c::globus_condattr_setspace" ref="gacca6f5cb093ac7aed78c91416f85843f" args="(globus_condattr_t *cond_attr, int space)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#gacca6f5cb093ac7aed78c91416f85843f">globus_condattr_setspace</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *&#160;</td>
          <td class="paramname"><em>cond_attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>space</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set callback space associated with a condition variable attributeThe <a class="el" href="group__globus__cond.html#gacca6f5cb093ac7aed78c91416f85843f" title="Set callback space associated with a condition variable attributeThe globus_condattr_setspace() funct...">globus_condattr_setspace()</a> function sets the callback space to use with condition variables created with this attribute. </p>
<p>Callback spaces are used to control how callbacks are issued to different threads. See <a class="el" href="group__globus__callback__spaces.html">Callback Spaces </a> for more information on callback spaces.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond_attr</td><td>Condition variable attribute to modify. </td></tr>
    <tr><td class="paramname">space</td><td>Callback space to associate with the attribute.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>On success, <a class="el" href="group__globus__cond.html#gacca6f5cb093ac7aed78c91416f85843f" title="Set callback space associated with a condition variable attributeThe globus_condattr_setspace() funct...">globus_condattr_setspace()</a> returns GLOBUS_SUCCESS and adds a reference to the callback space to the condition variable attribute. If an error occurs, <a class="el" href="group__globus__cond.html#gacca6f5cb093ac7aed78c91416f85843f" title="Set callback space associated with a condition variable attributeThe globus_condattr_setspace() funct...">globus_condattr_setspace()</a> returns an implementation-specific non-zero error code. </dd></dl>

</div>
</div>
<a class="anchor" id="gaacfdc80dc9721a8cd2f8ebe9b999f46a"></a><!-- doxytag: member="globus_thread.c::globus_condattr_getspace" ref="gaacfdc80dc9721a8cd2f8ebe9b999f46a" args="(globus_condattr_t *cond_attr, int *space)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="group__globus__cond.html#gaacfdc80dc9721a8cd2f8ebe9b999f46a">globus_condattr_getspace</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="unionglobus__condattr__t.html">globus_condattr_t</a> *&#160;</td>
          <td class="paramname"><em>cond_attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>space</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get callback space associated with a condition variable attributeThe <a class="el" href="group__globus__cond.html#gaacfdc80dc9721a8cd2f8ebe9b999f46a" title="Get callback space associated with a condition variable attributeThe globus_condattr_getspace() funct...">globus_condattr_getspace()</a> function copies the value of the callback space associated with a condition variable attribute to the integer pointed to by the <em>space</em> parameter. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cond_attr</td><td>Condition variable attribute to modify. </td></tr>
    <tr><td class="paramname">space</td><td>Pointer to an integer to be set to point to the callback space associated with cond_attr.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>On success, <a class="el" href="group__globus__cond.html#gaacfdc80dc9721a8cd2f8ebe9b999f46a" title="Get callback space associated with a condition variable attributeThe globus_condattr_getspace() funct...">globus_condattr_getspace()</a> returns GLOBUS_SUCCESS and modifies the value pointed to by <em>space</em> to refer to the callback space associated with <em>cond_attr</em>. If an error occurs, <a class="el" href="group__globus__cond.html#gaacfdc80dc9721a8cd2f8ebe9b999f46a" title="Get callback space associated with a condition variable attributeThe globus_condattr_getspace() funct...">globus_condattr_getspace()</a> returns an implementation-specific non-zero error code. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
<hr>
<p align="center">
<a href="http://www.globus.org/toolkit/about.html" target="_top">about globus</a> |
<a href="http://www.globus.org/toolkit/" target="_top">globus toolkit</a> |
<a href="https://dev.globus.org/wiki/Welcome/" target="_top">dev.globus</a>
<br>
<br>
Comments? <a href="mailto:webmaster@globus.org">webmaster@globus.org</a>

</body>
</html>