Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > c87dfbd6f7f653536d7b07ed7038c9d8 > files > 3763

clanlib0.8-docs-0.8.1-6.mga1.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_Thread::CL_Thread - ClanLib Game SDK</TITLE>
<STYLE TYPE="text/css"><!--
HTML BODY
{
	font-family: verdana, helvetica, sans-serif;
	font-size: 12px;
}
H1 { font-size: 22px; }
H2 { font-size: 18px; }
H3 { font-size: 16px; }
H4 { font-size: 14px; }
P { font-size: 12px; }
LI { font-size: 12px; }
--></STYLE>
</HEAD>

<body bgcolor=white text=black link=blue vlink=#800080>

<center>
<img src="http://clanlib.org/gfx/clanlib.png">
</center>
<!-- clanlib header end -->

<center>
<p>
<a href="http://clanlib.org/docs.html">Home</a> |
<a href="classes.html">All Classes</a> |
<a href="modules.html">Grouped Classes</a> |
<a href="index.html">Index</a> |
<a href="search.html">Search</a>
</p>
</center>
<h1>CL_Thread::CL_Thread</h1>
<p>  Create a thread.</p>
<pre>
	CL_Thread(
		CL_Runnable* runnable, bool delete_runnable = false);

	CL_Thread(
		int (*func)(void*), void* value);

	CL_Thread(
		const CL_Thread& copy);

	CL_Thread();
</pre>
<p><b>Parameters:</b></p>
<dl>
<dt><i>runnable</i></dt><dd>CL_Runnable object to be used as the thread run function.</dd>
<dt><i>delete_runnable</i></dt><dd>If true, deletes the CL_Runnable object, when CL_Thread is destroyed.</dd>
<dt><i>func</i></dt><dd>Callback function used as the thread run function. Example: int my_callback(void *value).</dd>
<dt><i>value</i></dt><dd>Value parameter passed to callback function.</dd>
</dl>
<p><b>See also:</b></p>
<p><a href="CL_Runnable.html">CL_Runnable</a> | <a href="CL_Thread.html">CL_Thread</a></p>


<!-- clanlib footer begin -->

<center><br><br><font color="#a0a0a0">
Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>.
</font></center>

</body>
</html>
<!-- clanlib footer end -->