~ubuntu-branches/ubuntu/quantal/glib2.0/quantal-updates

« back to all changes in this revision

Viewing changes to docs/reference/glib/html/glib-Thread-Pools.html

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-09-20 18:05:37 UTC
  • mfrom: (1.63.9) (162.1.6 quantal)
  • Revision ID: package-import@ubuntu.com-20120920180537-ztouhce80mq4z76j
Tags: 2.33.14-1svn1
Upload current Debian packaging svn head.

* debian/rules: Only run tests for the main flavour; it takes too
  long for all three and does not give us a lot of extra confidence.
* Add 07_socket_test_bump_max_time.patch: Increase /socket/timed_wait test
  max time. On slow architectures like armel, this test often fails due to
  "(poll_duration < 110000): (154022 < 110000)".

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>Thread Pools</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
7
<link rel="home" href="index.html" title="GLib Reference Manual">
8
8
<link rel="up" href="glib-core.html" title="GLib Core Application Support">
9
9
<link rel="prev" href="glib-Threads.html" title="Threads">
10
10
<link rel="next" href="glib-Asynchronous-Queues.html" title="Asynchronous Queues">
11
 
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
</head>
14
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
126
126
public read-only members, but the underlying struct is bigger,
127
127
so you must not copy this struct.
128
128
</p>
129
 
<div class="variablelist"><table border="0" class="variablelist">
130
 
<colgroup>
 
129
<div class="variablelist"><table border="0">
131
130
<col align="left" valign="top">
132
 
<col>
133
 
</colgroup>
134
131
<tbody>
135
132
<tr>
136
133
<td><p><span class="term"><a class="link" href="glib-Doubly-Linked-Lists.html#GFunc" title="GFunc ()"><span class="type">GFunc</span></a> <em class="structfield"><code><a name="GThreadPool.func"></a>func</code></em>;</span></p></td>
182
179
errors. An error can only occur when <em class="parameter"><code>exclusive</code></em> is set to <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS" title="TRUE"><code class="literal">TRUE</code></a>
183
180
and not all <em class="parameter"><code>max_threads</code></em> threads could be created.
184
181
</p>
185
 
<div class="variablelist"><table border="0" class="variablelist">
186
 
<colgroup>
 
182
<div class="variablelist"><table border="0">
187
183
<col align="left" valign="top">
188
 
<col>
189
 
</colgroup>
190
184
<tbody>
191
185
<tr>
192
186
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
244
238
<p>
245
239
Before version 2.32, this function did not return a success status.
246
240
</p>
247
 
<div class="variablelist"><table border="0" class="variablelist">
248
 
<colgroup>
 
241
<div class="variablelist"><table border="0">
249
242
<col align="left" valign="top">
250
 
<col>
251
 
</colgroup>
252
243
<tbody>
253
244
<tr>
254
245
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
305
296
<p>
306
297
Before version 2.32, this function did not return a success status.
307
298
</p>
308
 
<div class="variablelist"><table border="0" class="variablelist">
309
 
<colgroup>
 
299
<div class="variablelist"><table border="0">
310
300
<col align="left" valign="top">
311
 
<col>
312
 
</colgroup>
313
301
<tbody>
314
302
<tr>
315
303
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
341
329
<p>
342
330
Returns the maximal number of threads for <em class="parameter"><code>pool</code></em>.
343
331
</p>
344
 
<div class="variablelist"><table border="0" class="variablelist">
345
 
<colgroup>
 
332
<div class="variablelist"><table border="0">
346
333
<col align="left" valign="top">
347
 
<col>
348
 
</colgroup>
349
334
<tbody>
350
335
<tr>
351
336
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
366
351
<p>
367
352
Returns the number of threads currently running in <em class="parameter"><code>pool</code></em>.
368
353
</p>
369
 
<div class="variablelist"><table border="0" class="variablelist">
370
 
<colgroup>
 
354
<div class="variablelist"><table border="0">
371
355
<col align="left" valign="top">
372
 
<col>
373
 
</colgroup>
374
356
<tbody>
375
357
<tr>
376
358
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
391
373
<p>
392
374
Returns the number of tasks still unprocessed in <em class="parameter"><code>pool</code></em>.
393
375
</p>
394
 
<div class="variablelist"><table border="0" class="variablelist">
395
 
<colgroup>
 
376
<div class="variablelist"><table border="0">
396
377
<col align="left" valign="top">
397
 
<col>
398
 
</colgroup>
399
378
<tbody>
400
379
<tr>
401
380
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
434
413
<p>
435
414
After calling this function <em class="parameter"><code>pool</code></em> must not be used anymore.
436
415
</p>
437
 
<div class="variablelist"><table border="0" class="variablelist">
438
 
<colgroup>
 
416
<div class="variablelist"><table border="0">
439
417
<col align="left" valign="top">
440
 
<col>
441
 
</colgroup>
442
418
<tbody>
443
419
<tr>
444
420
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
469
445
<p>
470
446
The default value is 2.
471
447
</p>
472
 
<div class="variablelist"><table border="0" class="variablelist">
473
 
<colgroup>
 
448
<div class="variablelist"><table border="0">
474
449
<col align="left" valign="top">
475
 
<col>
476
 
</colgroup>
477
450
<tbody><tr>
478
451
<td><p><span class="term"><em class="parameter"><code>max_threads</code></em> :</span></p></td>
479
452
<td>maximal number of unused threads</td>
488
461
<p>
489
462
Returns the maximal allowed number of unused threads.
490
463
</p>
491
 
<div class="variablelist"><table border="0" class="variablelist">
492
 
<colgroup>
 
464
<div class="variablelist"><table border="0">
493
465
<col align="left" valign="top">
494
 
<col>
495
 
</colgroup>
496
466
<tbody><tr>
497
467
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
498
468
<td>the maximal number of unused threads</td>
507
477
<p>
508
478
Returns the number of currently unused threads.
509
479
</p>
510
 
<div class="variablelist"><table border="0" class="variablelist">
511
 
<colgroup>
 
480
<div class="variablelist"><table border="0">
512
481
<col align="left" valign="top">
513
 
<col>
514
 
</colgroup>
515
482
<tbody><tr>
516
483
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
517
484
<td>the number of currently unused threads</td>
546
513
cannot be assumed that threads are executed in the order they are
547
514
created.
548
515
</p>
549
 
<div class="variablelist"><table border="0" class="variablelist">
550
 
<colgroup>
 
516
<div class="variablelist"><table border="0">
551
517
<col align="left" valign="top">
552
 
<col>
553
 
</colgroup>
554
518
<tbody>
555
519
<tr>
556
520
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
592
556
<p>
593
557
The default value is 15000 (15 seconds).
594
558
</p>
595
 
<div class="variablelist"><table border="0" class="variablelist">
596
 
<colgroup>
 
559
<div class="variablelist"><table border="0">
597
560
<col align="left" valign="top">
598
 
<col>
599
 
</colgroup>
600
561
<tbody><tr>
601
562
<td><p><span class="term"><em class="parameter"><code>interval</code></em> :</span></p></td>
602
563
<td>the maximum <em class="parameter"><code>interval</code></em> (in milliseconds)
618
579
If this function returns 0, threads waiting in the thread
619
580
pool for new work are not stopped.
620
581
</p>
621
 
<div class="variablelist"><table border="0" class="variablelist">
622
 
<colgroup>
 
582
<div class="variablelist"><table border="0">
623
583
<col align="left" valign="top">
624
 
<col>
625
 
</colgroup>
626
584
<tbody><tr>
627
585
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
628
586
<td>the maximum <em class="parameter"><code>interval</code></em> (milliseconds) to wait
640
598
</div>
641
599
<div class="footer">
642
600
<hr>
643
 
          Generated by GTK-Doc V1.18.1</div>
 
601
          Generated by GTK-Doc V1.18</div>
644
602
</body>
645
603
</html>
 
 
b'\\ No newline at end of file'