1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7<title>Start</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/os/Overview.html">os</a>::<a href="../../../nn/os/Thread/Overview.html">Thread</a>::Start</CODE> Member Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13<pre class="definition">#include <nn/os.h> 14template <typename Stack> 15void Start( 16 void(*)() f, 17 Stack & stack, 18 s32 priority = DEFAULT_THREAD_PRIORITY, 19 s32 coreNo = CORE_NO_USE_PROCESS_VALUE 20); 21template <typename T, typename U, typename Stack> 22void Start( 23 void(*)(T) f, 24 U param, 25 Stack & stack, 26 s32 priority = DEFAULT_THREAD_PRIORITY, 27 s32 coreNo = CORE_NO_USE_PROCESS_VALUE 28); 29</pre> 30 </div> 31<h2>List of Overloaded Member Functions</h2> 32 <div class="section"> 33 <table class="members"> 34 <tr> 35 <td> 36<a href="./Start(0).html">Start ( void(*)(), Stack &, s32, s32 ) </a> 37 </td> 38<td>Initializes and runs a thread.</td> 39 </tr> 40 <tr> 41 <td> 42<a href="./Start(1).html">Start ( void(*)(T), U, Stack &, s32, s32 ) </a> 43 </td> 44<td>Initializes and runs a thread.</td> 45 </tr> </table> 46 </div> 47<h2>Description of Start ( void(*)(), Stack &, s32, s32 )</h2> 48<div class="section"><p>Initializes a thread using a stack prepared by the user application, then starts the thread. The stack region must be maintained until it is confirmed that the thread has been terminated.</p><p><B>Note:</B>In the present implementation, the application cannot specify a preferred processor. You MUST specify <CODE>CORE_NO_USE_PROCESS_VALUE</CODE>. 49 </p></div> 50<h2>Description of Start ( void(*)(T), U, Stack &, s32, s32 )</h2> 51<div class="section"><p>Initializes a thread using a stack prepared by the user application, then starts the thread. The stack region must be maintained until it is confirmed that the thread has been terminated.</p><p><B>Note:</B>In the present implementation, the application cannot specify a preferred processor. You MUST specify <CODE>CORE_NO_USE_PROCESS_VALUE</CODE>. 52 </p></div> 53 <hr><p>CONFIDENTIAL</p></body> 54</html> 55