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
|
<HTML>
<HEAD>
<TITLE>class toThread</TITLE>
<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
<TABLE BORDER="0">
<TR><TD valign="top" align="left" cellspacing="10">
<h1>class toThread</h1>
</TD>
<TD valign="top" align="right" colspan="1"> Used to create new threads of execution. <small><A HREF="#longdesc">More...</A></small></TD></TR>
</TABLE>
<HR>
<TABLE BORDER="0">
<TR><TH>Definition</TH><TD><code>#include <<A HREF="tothread_h.html">tothread.h</A>></code></TD></TR>
<TR><TH><A HREF="full-list-toThread.html">List of all Methods</A></TH></TR>
</TABLE>
</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI> <b><A HREF="#ref7">toThread</A></b> (<A HREF="toTask.html">toTask</A> *)
</LI>
<LI> <b><A HREF="#ref8">~toThread</A></b> ()
</LI>
<LI>void <b><A HREF="#ref9">start</A></b> (void)
</LI>
<LI>void <b><A HREF="#ref10">startAsync</A></b> (void)
</LI>
<LI> <b><A HREF="#ref24">toThread</A></b> (<A HREF="toTask.html">toTask</A> *task)
</LI>
<LI> <b><A HREF="#ref25">~toThread</A></b> ()
</LI>
<LI>void <b><A HREF="#ref26">start</A></b> (void)
</LI>
<LI>void <b><A HREF="#ref27">startAsync</A></b> (void)
</LI>
</ul><h4>Public Static Methods</h4><ul><LI>static void <b><A HREF="#ref11">msleep</A></b> (int msec)
</LI>
<LI>static bool <b><A HREF="#ref12">mainThread</A></b> (void)
</LI>
<LI>static void <b><A HREF="#ref28">msleep</A></b> (int msec)
</LI>
<LI>static bool <b><A HREF="#ref29">mainThread</A></b> (void)
</LI>
</ul><h4>Public Members</h4><ul><LI>friend class <b><A HREF="#ref13">taskRunner</A></b></LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> Used to create new threads of execution. When a thread exits it will delete the
thread and task objects so the calling thread must never delete a started thread.
</p>
<A NAME="toThread"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>toThread</strong> (<A HREF="toTask.html">toTask</A> *)
<br></td><td align="right"><h3><strong>toThread</strong></h3></td></tr></table><p></p><A NAME="~toThread"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~toThread</strong> ()
<br></td><td align="right"><h3><strong>~toThread</strong></h3></td></tr></table><p></p><A NAME="start"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>start</strong> (void)
<br></td><td align="right"><h3><strong>start</strong></h3></td></tr></table><p></p><A NAME="startAsync"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>startAsync</strong> (void)
<br></td><td align="right"><h3><strong>startAsync</strong></h3></td></tr></table><p></p><A NAME="msleep"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>msleep</strong> (int msec)
<br></td><td align="right"><h3><strong>msleep</strong></h3></td></tr></table><p> <small>[static]</small></p><A NAME="mainThread"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool <strong>mainThread</strong> (void)
<br></td><td align="right"><h3><strong>mainThread</strong></h3></td></tr></table><p> <small>[static]</small></p><A NAME="taskRunner"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>friend class <strong>taskRunner</strong>
</td><td align="right"><h3><strong>taskRunner</strong></h3></td></tr></table><p></p><A NAME="toThread"></A><A NAME="ref24"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>toThread</strong> (<A HREF="toTask.html">toTask</A> *task)
<br></td><td align="right"><h3><strong>toThread</strong></h3></td></tr></table><p></p><p> Create thread.
</p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>task</i></TD><TD align="left" valign="top">Task to run.
</TD></TR>
</TABLE></P>
<A NAME="~toThread"></A><A NAME="ref25"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~toThread</strong> ()
<br></td><td align="right"><h3><strong>~toThread</strong></h3></td></tr></table><p></p><A NAME="start"></A><A NAME="ref26"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>start</strong> (void)
<br></td><td align="right"><h3><strong>start</strong></h3></td></tr></table><p></p><p> Start thread and wait for other thread to start running.
</p>
<A NAME="startAsync"></A><A NAME="ref27"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>startAsync</strong> (void)
<br></td><td align="right"><h3><strong>startAsync</strong></h3></td></tr></table><p></p><p> Start thread and continue executing this thread until normal scheduling
handles over execution to child thread.
</p>
<A NAME="msleep"></A><A NAME="ref28"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>msleep</strong> (int msec)
<br></td><td align="right"><h3><strong>msleep</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Sleep in milliseconds.
</p>
<A NAME="mainThread"></A><A NAME="ref29"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool <strong>mainThread</strong> (void)
<br></td><td align="right"><h3><strong>mainThread</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Returns true if this is the main thread.
</p>
<HR>
<table>
</table>
</BODY>
</HTML>
|