diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-07-02 01:06:39 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-07-02 03:08:59 +0200 |
commit | c2a2445897af17adb56a32dcf111312763a575d4 (patch) | |
tree | ad459cdd682aff3a011d11b6f2a3c518c60dec6a /libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/Thread_8h.htm |
initial commit
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/Thread_8h.htm')
-rwxr-xr-x | libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/Thread_8h.htm | 212 |
1 files changed, 212 insertions, 0 deletions
diff --git a/libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/Thread_8h.htm b/libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/Thread_8h.htm new file mode 100755 index 0000000..530f357 --- /dev/null +++ b/libghack/CSFML-2.1-windows-64bits/CSFML-2.1/doc/html/Thread_8h.htm @@ -0,0 +1,212 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSFML - C binding of the Simple and Fast Multimedia Library</title> + <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> + <!--<link rel='stylesheet' type='text/css' href="http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>--> + <link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" /> + </head> + <body> + <div id="banner-container"> + <div id="banner"> + <span id="sfml">CSFML</span> + </div> + </div> + <div id="content"> +<!-- Generated by Doxygen 1.8.2 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.htm"><span>Main Page</span></a></li> + <li><a href="annotated.htm"><span>Data Structures</span></a></li> + <li class="current"><a href="files.htm"><span>Files</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.htm"><span>File List</span></a></li> + <li><a href="globals.htm"><span>Globals</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_6a66b7969672f1da69f458a57d2c97f9.htm">include</a></li><li class="navelem"><a class="el" href="dir_8cc999c03ab8fdf40558b1f21f869c3e.htm">SFML</a></li><li class="navelem"><a class="el" href="dir_c6605309d84130eeaba73c4c96d7b461.htm">System</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#func-members">Functions</a> </div> + <div class="headertitle"> +<div class="title">Thread.h File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <<a class="el" href="System_2Export_8h_source.htm">SFML/System/Export.h</a>></code><br/> +<code>#include <<a class="el" href="System_2Types_8h_source.htm">SFML/System/Types.h</a>></code><br/> +</div> +<p><a href="Thread_8h_source.htm">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> +Functions</h2></td></tr> +<tr class="memitem:a9257f98a24e85cc85b59c181db4e84dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="Thread_8h.htm#a9257f98a24e85cc85b59c181db4e84dc">sfThread_create</a> (void(*function)(void *), void *userData)</td></tr> +<tr class="memdesc:a9257f98a24e85cc85b59c181db4e84dc"><td class="mdescLeft"> </td><td class="mdescRight">Create a new thread from a function pointer. <a href="#a9257f98a24e85cc85b59c181db4e84dc"></a><br/></td></tr> +<tr class="separator:a9257f98a24e85cc85b59c181db4e84dc"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a013650eb375bce8ba691814abe94bfe6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Thread_8h.htm#a013650eb375bce8ba691814abe94bfe6">sfThread_destroy</a> (<a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a> *thread)</td></tr> +<tr class="memdesc:a013650eb375bce8ba691814abe94bfe6"><td class="mdescLeft"> </td><td class="mdescRight">Destroy a thread. <a href="#a013650eb375bce8ba691814abe94bfe6"></a><br/></td></tr> +<tr class="separator:a013650eb375bce8ba691814abe94bfe6"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ad68fdc94cc65dddf1b27a5b0758d3335"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Thread_8h.htm#ad68fdc94cc65dddf1b27a5b0758d3335">sfThread_launch</a> (<a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a> *thread)</td></tr> +<tr class="memdesc:ad68fdc94cc65dddf1b27a5b0758d3335"><td class="mdescLeft"> </td><td class="mdescRight">Run a thread. <a href="#ad68fdc94cc65dddf1b27a5b0758d3335"></a><br/></td></tr> +<tr class="separator:ad68fdc94cc65dddf1b27a5b0758d3335"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a198ad9130b09b362941c43b90f547381"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Thread_8h.htm#a198ad9130b09b362941c43b90f547381">sfThread_wait</a> (<a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a> *thread)</td></tr> +<tr class="memdesc:a198ad9130b09b362941c43b90f547381"><td class="mdescLeft"> </td><td class="mdescRight">Wait until a thread finishes. <a href="#a198ad9130b09b362941c43b90f547381"></a><br/></td></tr> +<tr class="separator:a198ad9130b09b362941c43b90f547381"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a1700c19f916ce8dfc8d2dcfe93d299ed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> void </td><td class="memItemRight" valign="bottom"><a class="el" href="Thread_8h.htm#a1700c19f916ce8dfc8d2dcfe93d299ed">sfThread_terminate</a> (<a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a> *thread)</td></tr> +<tr class="memdesc:a1700c19f916ce8dfc8d2dcfe93d299ed"><td class="mdescLeft"> </td><td class="mdescRight">Terminate a thread. <a href="#a1700c19f916ce8dfc8d2dcfe93d299ed"></a><br/></td></tr> +<tr class="separator:a1700c19f916ce8dfc8d2dcfe93d299ed"><td class="memSeparator" colspan="2"> </td></tr> +</table> +<h2 class="groupheader">Function Documentation</h2> +<a class="anchor" id="a9257f98a24e85cc85b59c181db4e84dc"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a>* sfThread_create </td> + <td>(</td> + <td class="paramtype">void(*)(void *) </td> + <td class="paramname"><em>function</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">void * </td> + <td class="paramname"><em>userData</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Create a new thread from a function pointer. </p> +<p>Note: this does <em>not</em> run the thread, use sfThread_launch.</p> +<dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">function</td><td>Entry point of the thread </td></tr> + <tr><td class="paramname">userData</td><td>Custom data to pass to the thread function</td></tr> + </table> + </dd> +</dl> +<dl class="section return"><dt>Returns</dt><dd>A new sfThread object </dd></dl> + +</div> +</div> +<a class="anchor" id="a013650eb375bce8ba691814abe94bfe6"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> void sfThread_destroy </td> + <td>(</td> + <td class="paramtype"><a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a> * </td> + <td class="paramname"><em>thread</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Destroy a thread. </p> +<p>This function calls sfThread_wait, so that the internal thread cannot survive after the sfThread object is destroyed.</p> +<dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">thread</td><td>Thread to destroy </td></tr> + </table> + </dd> +</dl> + +</div> +</div> +<a class="anchor" id="ad68fdc94cc65dddf1b27a5b0758d3335"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> void sfThread_launch </td> + <td>(</td> + <td class="paramtype"><a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a> * </td> + <td class="paramname"><em>thread</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Run a thread. </p> +<p>This function starts the entry point passed to the thread's constructor, and returns immediately. After this function returns, the thread's function is running in parallel to the calling code.</p> +<dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">thread</td><td>Thread object </td></tr> + </table> + </dd> +</dl> + +</div> +</div> +<a class="anchor" id="a1700c19f916ce8dfc8d2dcfe93d299ed"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> void sfThread_terminate </td> + <td>(</td> + <td class="paramtype"><a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a> * </td> + <td class="paramname"><em>thread</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Terminate a thread. </p> +<p>This function immediately stops the thread, without waiting for its function to finish. Terminating a thread with this function is not safe, and can lead to local variables not being destroyed on some operating systems. You should rather try to make the thread function terminate by itself.</p> +<dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">thread</td><td>Thread object </td></tr> + </table> + </dd> +</dl> + +</div> +</div> +<a class="anchor" id="a198ad9130b09b362941c43b90f547381"></a> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> void sfThread_wait </td> + <td>(</td> + <td class="paramtype"><a class="el" href="System_2Types_8h.htm#a15683ac09ac1dd77c08e962744bf59a1">sfThread</a> * </td> + <td class="paramname"><em>thread</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p>Wait until a thread finishes. </p> +<p>This function will block the execution until the thread's function ends. Warning: if the thread function never ends, the calling thread will block forever. If this function is called from its owner thread, it returns without doing anything.</p> +<dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">thread</td><td>Thread object </td></tr> + </table> + </dd> +</dl> + +</div> +</div> +</div><!-- contents --> + </div> + <div id="footer-container"> + <div id="footer"> + Copyright © Laurent Gomila :: + Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> :: + </div> + </div> + </body> +</html> |