Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > e8cbfa9673da18966abee0a6d7051b87 > files > 335

glibmm2.4-doc-2.16.1-1mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>glibmm 2.4: Glib::ThreadPool Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
    <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
    <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
  <a class="qindex" href="../../../../gtkmm-2.4/docs/index.html">Main Page</a> &nbsp;
  <a href="../../../../gtkmm-2.4/docs/reference/html/group__Widgets.html">Widgets</a> &nbsp;
  <a class="qindex" href="namespaces.html">glibmm Namespaces</a> &nbsp;
  <a href="../../../../gtkmm-2.4/docs/tutorial/html/index.html"> Book</a> &nbsp;
</center>
<hr width="100%"/>

<!-- begin main content -->
<div id="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="nav">
<a class="el" href="namespaceGlib.html">Glib</a>::<a class="el" href="classGlib_1_1ThreadPool.html">ThreadPool</a></div>
<h1>Glib::ThreadPool Class Reference<br>
<small>
[<a class="el" href="group__ThreadPools.html">Thread Pools</a>]</small>
</h1><!-- doxytag: class="Glib::ThreadPool" -->A pool of threads to execute work concurrently.  
<a href="#_details">More...</a>
<p>

<p>
<a href="classGlib_1_1ThreadPool-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#fd549a2867eafe34663d8935c17efbe2">ThreadPool</a> (int max_threads=-1, bool exclusive=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a new thread pool.  <a href="#fd549a2867eafe34663d8935c17efbe2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#aed3b188194822da768fa9a29e608b16">~ThreadPool</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#7b37fdac9f7a6e4a8791b4668e23e264">push</a> (const sigc::slot&lt;void&gt;&amp; slot)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Inserts <em>slot</em> into the list of tasks to be executed by the pool.  <a href="#7b37fdac9f7a6e4a8791b4668e23e264"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#e19ed9a523788e40509ee4f39d2b10a9">set_max_threads</a> (int max_threads)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the maximal allowed number of threads for the pool.  <a href="#e19ed9a523788e40509ee4f39d2b10a9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#6dbe83ceeb65fd0f157e1b1895ed3db5">get_max_threads</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the maximal number of threads for the pool.  <a href="#6dbe83ceeb65fd0f157e1b1895ed3db5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#2a6bc66c4eb03e346429e6f7fe3a5fe3">get_num_threads</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of threads currently running in the pool.  <a href="#2a6bc66c4eb03e346429e6f7fe3a5fe3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#8eb62f226a5f5e2f93b66b25c49cc401">unprocessed</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of tasks still unprocessed in the pool.  <a href="#8eb62f226a5f5e2f93b66b25c49cc401"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#b59582875f80b94bf4707c1c77f234ba">get_exclusive</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether all threads are exclusive to this pool.  <a href="#b59582875f80b94bf4707c1c77f234ba"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#14a3e00a1fec5fec2bded78ea6a2b796">shutdown</a> (bool immediately=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Frees all resources allocated for the pool.  <a href="#14a3e00a1fec5fec2bded78ea6a2b796"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="threadpool_8h.html#4a5d6bc787e17cf7a86262811f4515e4">GThreadPool</a>*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#c7f444f305942afb54c45204f509bc39">gobj</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="threadpool_8h.html#4a5d6bc787e17cf7a86262811f4515e4">GThreadPool</a>*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#ba0bd84d5851f3a64269685dc102cd4b">gobj</a> () const </td></tr>

<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#f057a2e30dc3e32137944f71658467db">set_max_unused_threads</a> (int max_threads)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the maximal number of unused threads to <em>max_threads</em>.  <a href="#f057a2e30dc3e32137944f71658467db"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#a0bb8c1914b2e36fa0222bbaeb44b94e">get_max_unused_threads</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the maximal allowed number of unused threads.  <a href="#a0bb8c1914b2e36fa0222bbaeb44b94e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#9904f39dc346cd44296f361415147ae1">get_num_unused_threads</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of currently unused threads.  <a href="#9904f39dc346cd44296f361415147ae1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1ThreadPool.html#132a7f8416d29f9499ed87ba102c37a3">stop_unused_threads</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Stops all currently unused threads.  <a href="#132a7f8416d29f9499ed87ba102c37a3"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A pool of threads to execute work concurrently. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="fd549a2867eafe34663d8935c17efbe2"></a><!-- doxytag: member="Glib::ThreadPool::ThreadPool" ref="fd549a2867eafe34663d8935c17efbe2" args="(int max_threads=-1, bool exclusive=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::ThreadPool::ThreadPool           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>max_threads</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>exclusive</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructs a new thread pool. 
<p>
Whenever you call <a class="el" href="classGlib_1_1ThreadPool.html#7b37fdac9f7a6e4a8791b4668e23e264" title="Inserts slot into the list of tasks to be executed by the pool.">ThreadPool::push()</a>, either a new thread is created or an unused one is reused. At most <em>max_threads</em> threads are running concurrently for this thread pool. <em>max_threads&nbsp;=&nbsp;-1</em> allows unlimited threads to be created for this thread pool.<p>
The parameter <em>exclusive</em> determines, whether the thread pool owns all threads exclusive or whether the threads are shared globally. If <em>exclusive</em> is <code>true</code>, <em>max_threads</em> threads are started immediately and they will run exclusively for this thread pool until it is destroyed by <a class="el" href="classGlib_1_1ThreadPool.html#aed3b188194822da768fa9a29e608b16">~ThreadPool()</a>. If <em>exclusive</em> is <code>false</code>, threads are created when needed and shared between all non-exclusive thread pools. This implies that <em>max_threads</em> may not be -1 for exclusive thread pools.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>max_threads</em>&nbsp;</td><td>The maximal number of threads to execute concurrently in the new thread pool, -1 means no limit. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>exclusive</em>&nbsp;</td><td>Should this thread pool be exclusive? </td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classGlib_1_1ThreadError.html" title="Exception class for thread-related errors.">Glib::ThreadError</a></em>&nbsp;</td><td>An error can only occur when <em>exclusive</em> is set to <code>true</code> and not all <em>max_threads</em> threads could be created. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="aed3b188194822da768fa9a29e608b16"></a><!-- doxytag: member="Glib::ThreadPool::~ThreadPool" ref="aed3b188194822da768fa9a29e608b16" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Glib::ThreadPool::~ThreadPool           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7b37fdac9f7a6e4a8791b4668e23e264"></a><!-- doxytag: member="Glib::ThreadPool::push" ref="7b37fdac9f7a6e4a8791b4668e23e264" args="(const sigc::slot&lt; void &gt; &amp;slot)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::ThreadPool::push           </td>
          <td>(</td>
          <td class="paramtype">const sigc::slot&lt; void &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>slot</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Inserts <em>slot</em> into the list of tasks to be executed by the pool. 
<p>
When the number of currently running threads is lower than the maximal allowed number of threads, a new thread is started (or reused). Otherwise <em>slot</em> stays in the queue until a thread in this pool finishes its previous task and processes <em>slot</em>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>slot</em>&nbsp;</td><td>A new task for the thread pool. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classGlib_1_1ThreadError.html" title="Exception class for thread-related errors.">Glib::ThreadError</a></em>&nbsp;</td><td>An error can only occur when a new thread couldn't be created. In that case <em>slot</em> is simply appended to the queue of work to do. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="e19ed9a523788e40509ee4f39d2b10a9"></a><!-- doxytag: member="Glib::ThreadPool::set_max_threads" ref="e19ed9a523788e40509ee4f39d2b10a9" args="(int max_threads)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::ThreadPool::set_max_threads           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>max_threads</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the maximal allowed number of threads for the pool. 
<p>
A value of -1 means that the maximal number of threads is unlimited. Setting <em>max_threads</em> to 0 means stopping all work for pool. It is effectively frozen until <em>max_threads</em> is set to a non-zero value again.<p>
A thread is never terminated while it is still running. Instead the maximal number of threads only has effect for the allocation of new threads in <a class="el" href="classGlib_1_1ThreadPool.html#7b37fdac9f7a6e4a8791b4668e23e264" title="Inserts slot into the list of tasks to be executed by the pool.">ThreadPool::push()</a>. A new thread is allocated whenever the number of currently running threads in the pool is smaller than the maximal number.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>max_threads</em>&nbsp;</td><td>A new maximal number of threads for the pool. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classGlib_1_1ThreadError.html" title="Exception class for thread-related errors.">Glib::ThreadError</a></em>&nbsp;</td><td>An error can only occur when a new thread couldn't be created. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="6dbe83ceeb65fd0f157e1b1895ed3db5"></a><!-- doxytag: member="Glib::ThreadPool::get_max_threads" ref="6dbe83ceeb65fd0f157e1b1895ed3db5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::ThreadPool::get_max_threads           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the maximal number of threads for the pool. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The maximal number of threads. </dd></dl>

</div>
</div><p>
<a class="anchor" name="2a6bc66c4eb03e346429e6f7fe3a5fe3"></a><!-- doxytag: member="Glib::ThreadPool::get_num_threads" ref="2a6bc66c4eb03e346429e6f7fe3a5fe3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Glib::ThreadPool::get_num_threads           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the number of threads currently running in the pool. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of threads currently running. </dd></dl>

</div>
</div><p>
<a class="anchor" name="8eb62f226a5f5e2f93b66b25c49cc401"></a><!-- doxytag: member="Glib::ThreadPool::unprocessed" ref="8eb62f226a5f5e2f93b66b25c49cc401" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Glib::ThreadPool::unprocessed           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the number of tasks still unprocessed in the pool. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of unprocessed tasks. </dd></dl>

</div>
</div><p>
<a class="anchor" name="b59582875f80b94bf4707c1c77f234ba"></a><!-- doxytag: member="Glib::ThreadPool::get_exclusive" ref="b59582875f80b94bf4707c1c77f234ba" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::ThreadPool::get_exclusive           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns whether all threads are exclusive to this pool. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether all threads are exclusive to this pool. </dd></dl>

</div>
</div><p>
<a class="anchor" name="14a3e00a1fec5fec2bded78ea6a2b796"></a><!-- doxytag: member="Glib::ThreadPool::shutdown" ref="14a3e00a1fec5fec2bded78ea6a2b796" args="(bool immediately=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::ThreadPool::shutdown           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>immediately</em> = <code>false</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Frees all resources allocated for the pool. 
<p>
If <em>immediately</em> is <code>true</code>, no new task is processed. Otherwise the pool is not freed before the last task is processed. Note however, that no thread of this pool is interrupted while processing a task. Instead at least all still running threads can finish their tasks before the pool is freed.<p>
This method does not return before all tasks to be processed (dependent on <em>immediately</em>, whether all or only the currently running) are ready. After calling <a class="el" href="classGlib_1_1ThreadPool.html#14a3e00a1fec5fec2bded78ea6a2b796" title="Frees all resources allocated for the pool.">shutdown()</a> the pool must not be used anymore.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>immediately</em>&nbsp;</td><td>Should the pool shut down immediately? </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="f057a2e30dc3e32137944f71658467db"></a><!-- doxytag: member="Glib::ThreadPool::set_max_unused_threads" ref="f057a2e30dc3e32137944f71658467db" args="(int max_threads)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Glib::ThreadPool::set_max_unused_threads           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>max_threads</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the maximal number of unused threads to <em>max_threads</em>. 
<p>
If <em>max_threads</em> is -1, no limit is imposed on the number of unused threads. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>max_threads</em>&nbsp;</td><td>Maximal number of unused threads. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="a0bb8c1914b2e36fa0222bbaeb44b94e"></a><!-- doxytag: member="Glib::ThreadPool::get_max_unused_threads" ref="a0bb8c1914b2e36fa0222bbaeb44b94e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int Glib::ThreadPool::get_max_unused_threads           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the maximal allowed number of unused threads. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The maximal number of unused threads. </dd></dl>

</div>
</div><p>
<a class="anchor" name="9904f39dc346cd44296f361415147ae1"></a><!-- doxytag: member="Glib::ThreadPool::get_num_unused_threads" ref="9904f39dc346cd44296f361415147ae1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static unsigned int Glib::ThreadPool::get_num_unused_threads           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the number of currently unused threads. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of currently unused threads. </dd></dl>

</div>
</div><p>
<a class="anchor" name="132a7f8416d29f9499ed87ba102c37a3"></a><!-- doxytag: member="Glib::ThreadPool::stop_unused_threads" ref="132a7f8416d29f9499ed87ba102c37a3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Glib::ThreadPool::stop_unused_threads           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Stops all currently unused threads. 
<p>
This does not change the maximal number of unused threads. This function can be used to regularly stop all unused threads e.g. from <a class="el" href="group__MainLoop.html#gadb206fcc112f086f9d47c016b1f2175" title="Convenience timeout signal.">Glib::signal_timeout()</a>. 
</div>
</div><p>
<a class="anchor" name="c7f444f305942afb54c45204f509bc39"></a><!-- doxytag: member="Glib::ThreadPool::gobj" ref="c7f444f305942afb54c45204f509bc39" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="threadpool_8h.html#4a5d6bc787e17cf7a86262811f4515e4">GThreadPool</a>* Glib::ThreadPool::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="ba0bd84d5851f3a64269685dc102cd4b"></a><!-- doxytag: member="Glib::ThreadPool::gobj" ref="ba0bd84d5851f3a64269685dc102cd4b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="threadpool_8h.html#4a5d6bc787e17cf7a86262811f4515e4">GThreadPool</a>* Glib::ThreadPool::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="threadpool_8h.html">threadpool.h</a></ul>
</div> <!-- end main content -->

<hr><address><small>
Generated for glibmm 2.4 by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.3 &copy;&nbsp;1997-2001</small></address>
</body>
</html>