Release 4.2.1 tarball

This commit is contained in:
Gary Scavone
2013-09-29 23:40:35 +02:00
committed by Stephen Sinclair
parent 11cf5faa0a
commit 21b93795e7
1041 changed files with 23984 additions and 16348 deletions

View File

@@ -8,8 +8,8 @@
<img src="princeton.gif"> &nbsp; <img src="ccrma.gif"> &nbsp; <img src="mcgill.gif"><P>
<a class="qindex" href="index.html">Home</a> &nbsp; <a class="qindex" href="information.html">Information</a> &nbsp; <a class="qindex" href="classes.html">Classes</a> &nbsp; <a class="qindex" href="download.html">Download</a> &nbsp; <a class="qindex" href="usage.html">Usage</a> &nbsp; <a class="qindex" href="maillist.html">Mail List</a> &nbsp; <a class="qindex" href="system.html">Requirements</a> &nbsp; <a class="qindex" href="links.html">Links</a> &nbsp; <a class="qindex" href="tutorial.html">Tutorial</a></CENTER>
<HR>
<!-- Generated by Doxygen 1.3.4 -->
<h1>Thread Class Reference</h1><code>#include &lt;<a class="el" href="Thread_8h-source.html">Thread.h</a>&gt;</code>
<!-- Generated by Doxygen 1.4.4 -->
<h1>Thread Class Reference</h1><!-- doxytag: class="Thread" --><!-- doxytag: inherits="Stk" --><code>#include &lt;<a class="el" href="Thread_8h-source.html">Thread.h</a>&gt;</code>
<p>
<p>Inheritance diagram for Thread:
<p><center><img src="classThread.png" usemap="#Thread_map" border="0" alt=""></center>
@@ -23,63 +23,60 @@ This class provides a uniform interface for cross-platform threads. On unix syst
Each instance of the Thread class can be used to control a single thread process. Routines are provided to signal cancelation and/or joining with a thread, though it is not possible for this class to know the running status of a thread once it is started.<p>
For cross-platform compatability, thread functions should be declared as follows:<p>
THREAD_RETURN THREAD_TYPE thread_function(void *ptr)<p>
by Perry R. Cook and Gary P. Scavone, 1995 - 2004.
by Perry R. Cook and Gary P. Scavone, 1995 - 2005.
<p>
<p>
Definition at line <a class="el" href="Thread_8h-source.html#l00047">47</a> of file <a class="el" href="Thread_8h-source.html">Thread.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<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><a class="anchor" name="a0" doxytag="Thread::Thread" ></a>
&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classThread.html#a0">Thread</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0"></a><!-- doxytag: member="Thread::Thread" ref="a0" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThread.html#a0">Thread</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a1" doxytag="Thread::~Thread" ></a>
&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classThread.html#a1">~Thread</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1"></a><!-- doxytag: member="Thread::~Thread" ref="a1" args="()" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThread.html#a1">~Thread</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The class destructor does not attempt to cancel or join a thread. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classThread.html#a2">start</a> (THREAD_FUNCTION routine, void *ptr=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The class destructor does not attempt to cancel or join a thread. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classThread.html#a2">start</a> (THREAD_FUNCTION routine, void *ptr=NULL)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Begin execution of the thread <em>routine</em>. Upon success, true is returned. </em> <a href="#a2"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classThread.html#a3">cancel</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Begin execution of the thread <em>routine</em>. Upon success, true is returned. <a href="#a2"></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="classThread.html#a3">cancel</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal cancellation of a thread routine, returning <em>true</em> on success. </em> <a href="#a3"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classThread.html#a4">wait</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal cancellation of a thread routine, returning <em>true</em> on success. <a href="#a3"></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="classThread.html#a4">wait</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Block the calling routine indefinitely until the thread terminates. </em> <a href="#a4"></a><em><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classThread.html#a5">testCancel</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Block the calling routine indefinitely until the thread terminates. <a href="#a4"></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="classThread.html#a5">testCancel</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a cancellation point within a thread routine. </em> <a href="#a5"></a><em><br><br></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a cancellation point within a thread routine. <a href="#a5"></a><br></td></tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a2" doxytag="Thread::start" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<a class="anchor" name="a2"></a><!-- doxytag: member="Thread::start" ref="a2" args="(THREAD_FUNCTION routine, void *ptr=NULL)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Thread::start </td>
<td class="md" nowrap valign="top">bool Thread::start </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">THREAD_FUNCTION&nbsp;</td>
<td class="mdname" nowrap> <em>routine</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>void *&nbsp;</td>
<td class="mdname" nowrap> <em>ptr</em> = NULL</td>
<td class="mdname" nowrap> <em>ptr</em> = <code>NULL</code></td>
</tr>
<tr>
<td></td>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
@@ -89,28 +86,27 @@ Definition at line <a class="el" href="Thread_8h-source.html#l00047">47</a> of f
<p>
Begin execution of the thread <em>routine</em>. Upon success, true is returned.
<p>
A data pointer can be supplied to the thread routine via the optional <em>ptr</em> argument. If the thread cannot be created, the return value is false. </td>
A data pointer can be supplied to the thread routine via the optional <em>ptr</em> argument. If the thread cannot be created, the return value is false. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="Thread::cancel" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<a class="anchor" name="a3"></a><!-- doxytag: member="Thread::cancel" ref="a3" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Thread::cancel </td>
<td class="md" nowrap valign="top">bool Thread::cancel </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">void&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
@@ -120,28 +116,27 @@ A data pointer can be supplied to the thread routine via the optional <em>ptr</e
<p>
Signal cancellation of a thread routine, returning <em>true</em> on success.
<p>
This function only signals thread cancellation. It does not wait to verify actual routine termination. A <em>true</em> return value only signifies that the cancellation signal was properly executed, not thread cancellation. A thread routine may need to make use of the <a class="el" href="classThread.html#a5">testCancel()</a> function to specify a cancellation point. </td>
This function only signals thread cancellation. It does not wait to verify actual routine termination. A <em>true</em> return value only signifies that the cancellation signal was properly executed, not thread cancellation. A thread routine may need to make use of the <a class="el" href="classThread.html#a5">testCancel()</a> function to specify a cancellation point. </td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="Thread::wait" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<a class="anchor" name="a4"></a><!-- doxytag: member="Thread::wait" ref="a4" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Thread::wait </td>
<td class="md" nowrap valign="top">bool Thread::wait </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">void&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
@@ -151,28 +146,27 @@ This function only signals thread cancellation. It does not wait to verify actua
<p>
Block the calling routine indefinitely until the thread terminates.
<p>
This function suspends execution of the calling routine until the thread has terminated. It will return immediately if the thread was already terminated. A <em>true</em> return value signifies successful termination. A <em>false</em> return value indicates a problem with the wait call. </td>
This function suspends execution of the calling routine until the thread has terminated. It will return immediately if the thread was already terminated. A <em>true</em> return value signifies successful termination. A <em>false</em> return value indicates a problem with the wait call. </td>
</tr>
</table>
<a class="anchor" name="a5" doxytag="Thread::testCancel" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<a class="anchor" name="a5"></a><!-- doxytag: member="Thread::testCancel" ref="a5" args="(void)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void Thread::testCancel </td>
<td class="md" nowrap valign="top">void Thread::testCancel </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">void&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
@@ -182,7 +176,7 @@ This function suspends execution of the calling routine until the thread has ter
<p>
Create a cancellation point within a thread routine.
<p>
This function call checks for thread cancellation, allowing the thread to be terminated if a cancellation request was previously signaled. </td>
This function call checks for thread cancellation, allowing the thread to be terminated if a cancellation request was previously signaled. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
@@ -191,7 +185,7 @@ This function call checks for thread cancellation, allowing the thread to be ter
<table>
<tr><td><A HREF="http://ccrma.stanford.edu/software/stk/"><I>The Synthesis ToolKit in C++ (STK)</I></A></td></tr>
<tr><td>&copy;1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
<tr><td>&copy;1995-2005 Perry R. Cook and Gary P. Scavone. All Rights Reserved.</td></tr>
</table>
</BODY>