Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > contrib > by-pkgid > 263386785cefb9ae5d63b926d214d809 > files > 516

mpqc-2.1.2-4mdk.ppc.rpm

<!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=iso-8859-1">
<title>sc::PthreadThreadGrp class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.5 on Mon Oct 14 14:17:28 2002 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>sc::PthreadThreadGrp  Class Reference</h1>The <a class="el" href="class_sc__PthreadThreadGrp.html">PthreadThreadGrp</a> class privides a concrete thread group appropriate for an environment where pthreads is available. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="thpthd_h-source.html">thpthd.h</a>&gt;</code>
<p>
Inheritance diagram for sc::PthreadThreadGrp<p><center><img src="class_sc__PthreadThreadGrp_inherit_graph.gif" border="0" usemap="#sc::PthreadThreadGrp_inherit_map" alt="Inheritance graph"></center>
<map name="sc::PthreadThreadGrp_inherit_map">
<area href="class_sc__ThreadGrp.html" shape="rect" coords="34,214,125,233">
<area href="class_sc__DescribedClass.html" shape="rect" coords="22,147,137,166">
<area href="class_sc__RefCount.html" shape="rect" coords="38,81,121,99">
<area href="class_sc__Identity.html" shape="rect" coords="43,14,115,33">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for sc::PthreadThreadGrp:<p><center><img src="class_sc__PthreadThreadGrp_coll_graph.gif" border="0" usemap="#sc::PthreadThreadGrp_coll_map" alt="Collaboration graph"></center>
<map name="sc::PthreadThreadGrp_coll_map">
<area href="class_sc__ThreadGrp.html" shape="rect" coords="110,235,201,254">
<area href="class_sc__DescribedClass.html" shape="rect" coords="14,153,129,171">
<area href="class_sc__RefCount.html" shape="rect" coords="30,83,113,102">
<area href="class_sc__Identity.html" shape="rect" coords="35,14,107,33">
<area href="class_sc__Thread.html" shape="rect" coords="153,153,222,171">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_sc__PthreadThreadGrp-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="a0" doxytag="sc::PthreadThreadGrp::PthreadThreadGrp"></a>
&nbsp;</td><td valign=bottom><b>PthreadThreadGrp</b> ()</td></tr>
<tr><td nowrap align=right valign=top><a name="a1" doxytag="sc::PthreadThreadGrp::PthreadThreadGrp"></a>
&nbsp;</td><td valign=bottom><b>PthreadThreadGrp</b> (const PthreadThreadGrp &amp;, int nthread=-1)</td></tr>
<tr><td nowrap align=right valign=top><a name="a2" doxytag="sc::PthreadThreadGrp::PthreadThreadGrp"></a>
&nbsp;</td><td valign=bottom><b>PthreadThreadGrp</b> (const <a class="el" href="class_sc__Ref.html">Ref</a>&lt; <a class="el" href="class_sc__KeyVal.html">KeyVal</a> &gt; &amp;)</td></tr>
<tr><td nowrap align=right valign=top><a name="a3" doxytag="sc::PthreadThreadGrp::~PthreadThreadGrp"></a>
&nbsp;</td><td valign=bottom><b>~PthreadThreadGrp</b> ()</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="class_sc__PthreadThreadGrp.html#a4">start_threads</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Starts the threads running.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="class_sc__PthreadThreadGrp.html#a5">wait_threads</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Wait for all the threads to complete.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__PthreadThreadGrp.html#a6">add_thread</a> (int i, <a class="el" href="class_sc__Thread.html">Thread</a> *t)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Assigns a <a class="el" href="class_sc__Thread.html">Thread</a> object to each thread.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="class_sc__PthreadThreadGrp.html#a7">add_thread</a> (int i, <a class="el" href="class_sc__Thread.html">Thread</a> *t, int priority)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Like add_thread(threadnum, thread), but assign a priority that the thread is to use.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a8" doxytag="sc::PthreadThreadGrp::new_lock"></a>
<a class="el" href="class_sc__Ref.html">Ref</a>&lt;<a class="el" href="class_sc__ThreadLock.html">ThreadLock</a>&gt;&nbsp;</td><td valign=bottom><a class="el" href="class_sc__PthreadThreadGrp.html#a8">new_lock</a> ()</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Return a local object.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="class_sc__ThreadGrp.html">ThreadGrp</a>*&nbsp;</td><td valign=bottom><a class="el" href="class_sc__PthreadThreadGrp.html#a9">clone</a> (int nthread=-1)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Create a <a class="el" href="class_sc__ThreadGrp.html">ThreadGrp</a> like the current one.</em> <a href="#a9">More...</a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <a class="el" href="class_sc__PthreadThreadGrp.html">PthreadThreadGrp</a> class privides a concrete thread group appropriate for an environment where pthreads is available.
<p>
<hr><h2>Member Function Documentation</h2>
<a name="a7" doxytag="sc::PthreadThreadGrp::add_thread"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
void sc::PthreadThreadGrp::add_thread (
          </b></td>
          <td valign="bottom"><b>
int <em>i</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
<a class="el" href="class_sc__Thread.html">Thread</a> * <em>t</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
int <em>priority</em>&nbsp;)<code> [virtual]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Like add_thread(threadnum, thread), but assign a priority that the thread is to use.
<p>
The member is primarily for experimentation, the priority argument is currently not well defined and ignored. 
<p>
Reimplemented from <a class="el" href="class_sc__ThreadGrp.html#a5">sc::ThreadGrp</a>.    </td>
  </tr>
</table>
<a name="a6" doxytag="sc::PthreadThreadGrp::add_thread"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
void sc::PthreadThreadGrp::add_thread (
          </b></td>
          <td valign="bottom"><b>
int <em>i</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
<a class="el" href="class_sc__Thread.html">Thread</a> * <em>t</em>&nbsp;)<code> [inline, virtual]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Assigns a <a class="el" href="class_sc__Thread.html">Thread</a> object to each thread.
<p>
If 0 is assigned to a thread, then that thread will be skipped. 
<p>
Reimplemented from <a class="el" href="class_sc__ThreadGrp.html#a4">sc::ThreadGrp</a>.    </td>
  </tr>
</table>
<a name="a9" doxytag="sc::PthreadThreadGrp::clone"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
<a class="el" href="class_sc__ThreadGrp.html">ThreadGrp</a>* sc::PthreadThreadGrp::clone (
          </b></td>
          <td valign="bottom"><b>
int <em>nthread</em> = -1&nbsp;)<code> [virtual]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Create a <a class="el" href="class_sc__ThreadGrp.html">ThreadGrp</a> like the current one.
<p>
If nthread is given, the new <a class="el" href="class_sc__ThreadGrp.html">ThreadGrp</a> will attempt to support that number of threads, but the actual number supported may be less. If nthread is -1, the number of threads in the current group will be used. 
<p>
Reimplemented from <a class="el" href="class_sc__ThreadGrp.html#a11">sc::ThreadGrp</a>.    </td>
  </tr>
</table>
<a name="a4" doxytag="sc::PthreadThreadGrp::start_threads"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
int sc::PthreadThreadGrp::start_threads (
          </b></td>
          <td valign="bottom"><b>
)<code> [virtual]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Starts the threads running.
<p>
<a class="el" href="class_sc__Thread.html">Thread</a> 0 will be run by the thread that calls start_threads. 
<p>
Reimplemented from <a class="el" href="class_sc__ThreadGrp.html#a8">sc::ThreadGrp</a>.    </td>
  </tr>
</table>
<a name="a5" doxytag="sc::PthreadThreadGrp::wait_threads"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td nowrap valign="top"><b> 
int sc::PthreadThreadGrp::wait_threads (
          </b></td>
          <td valign="bottom"><b>
)<code> [virtual]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Wait for all the threads to complete.
<p>
This must be called before start_threads is called again or the object is destroyed. 
<p>
Reimplemented from <a class="el" href="class_sc__ThreadGrp.html#a9">sc::ThreadGrp</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="thpthd_h-source.html">thpthd.h</a></ul>
<hr>
<address>
<small>

Generated at Mon Oct 14 14:17:28 2002 for <a
href="http://aros.ca.sandia.gov/~cljanss/mpqc">MPQC</a>
2.1.2 using the documentation package <a
href="http://www.stack.nl/~dimitri/doxygen/index.html">Doxygen</a>
1.2.5.

</small>
</address>
</body>
</html>