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>nn::os::Thread::Start</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/os.h&gt;
14
15template &lt;typename Stack&gt;
16void Start(
17     void(*)() f,
18     Stack & stack,
19     s32 priority = DEFAULT_THREAD_PRIORITY,
20     s32 coreNo = CORE_NO_USE_PROCESS_VALUE
21);
22</pre>
23    </div>
24<h2>Template Arguments</h2>
25    <div class="section">
26      <table class="arguments">
27        <thead>
28          <tr>
29<th>Name</th>
30<td>Description</td>
31          </tr>
32        </thead>
33        <tr>
34<th>Stack</th>
35<td>Type representing stacks</td>
36        </tr> </table>
37    </div>
38<h2>Arguments</h2>
39    <div class="section">
40      <table class="arguments">
41        <thead>
42          <tr>
43            <td width="15" />
44<th>Name</th>
45<td>Description</td>
46          </tr>
47        </thead>
48        <tr>
49<td>in</td>
50<th>f</th>
51<td>Pointer to the function to begin running.</td>
52        </tr>
53        <tr>
54<td>in</td>
55<th>stack</th>
56<td>Object representing the stack region</td>
57        </tr>
58        <tr>
59<td>in</td>
60<th>priority</th>
61<td>Priority of the thread.</td>
62        </tr>
63        <tr>
64<td>in</td>
65<th>coreNo</th>
66<td>Preferred processor for the thread.</td>
67        </tr> </table>
68    </div>
69<h2>Return Values</h2>
70    <div class="section">
71None.
72               </div>
73<h2>Description</h2>
74    <div class="section">
75<p>Initializes and runs a thread.</p><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><!-- write here --></div>
76<h2>Revision History</h2>
77    <div class="section">
78      <dl class="history">
79        <dt>2010/01/07</dt>
80<dd>Initial version.<br />
81        </dd>
82      </dl>
83    </div>
84  <hr><p>CONFIDENTIAL</p></body>
85</html>