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>Initialize</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/ManagedThread/Overview.html">ManagedThread</a>::Initialize</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 T, typename U, typename Stack&gt;
16void Initialize(
17     void(*)(T) f,
18     U param,
19     Stack & stack,
20     <a href="../../../nn_types/s32.html">s32</a> priority = PRIORITY_DEFAULT,
21     <a href="../../../nn_types/s32.html">s32</a> coreNo = CORE_NO_DEFAULT
22);
23
24template &lt;typename T, typename Stack&gt;
25void Initialize(
26     void(*)(T *) f,
27     const T & param,
28     Stack & stack,
29     <a href="../../../nn_types/s32.html">s32</a> priority = PRIORITY_DEFAULT,
30     <a href="../../../nn_types/s32.html">s32</a> coreNo = CORE_NO_DEFAULT
31);
32
33template &lt;typename T, typename Stack&gt;
34void Initialize(
35     void(*)(const T *) f,
36     const T & param,
37     Stack & stack,
38     <a href="../../../nn_types/s32.html">s32</a> priority = PRIORITY_DEFAULT,
39     <a href="../../../nn_types/s32.html">s32</a> coreNo = CORE_NO_DEFAULT
40);
41
42template &lt;typename Stack&gt;
43void Initialize(
44     void(*)() f,
45     Stack & stack,
46     <a href="../../../nn_types/s32.html">s32</a> priority = PRIORITY_DEFAULT,
47     <a href="../../../nn_types/s32.html">s32</a> coreNo = CORE_NO_DEFAULT
48);
49</pre>
50    </div>
51    <h2>List of Overloaded Member Functions</h2>
52    <div class="section">
53      <table class="members">
54        <tr>
55          <td>
56            <a href="./Initialize(0).html"><CODE>Initialize ( void(*)(T), U, Stack &, s32, s32 )</CODE> </a>
57          </td>
58          <td>Specifies a buffer for the stack and creates a thread.</td>
59        </tr>
60        <tr>
61          <td>
62            <a href="./Initialize(1).html"><CODE>Initialize ( void(*)(T *), const T &, Stack &, s32, s32 )</CODE> </a>
63          </td>
64          <td>Specifies a buffer for the stack and creates a thread.</td>
65        </tr>
66        <tr>
67          <td>
68            <a href="./Initialize(2).html"><CODE>Initialize ( void(*)(const T *), const T &, Stack &, s32, s32 )</CODE> </a>
69          </td>
70          <td>Specifies a buffer for the stack and creates a thread.</td>
71        </tr>
72        <tr>
73          <td>
74            <a href="./Initialize(3).html"><CODE>Initialize ( void(*)(), Stack &, s32, s32 )</CODE> </a>
75          </td>
76          <td>Specifies a buffer for the stack and creates a thread.</td>
77        </tr> </table>
78    </div>
79    <h2>Description of <CODE>Initialize ( void(*)(T), U, Stack &, s32, s32 )</CODE></h2>
80    <div class="section"><p>
81                Performs the same processing as the <CODE><a href="../../../nn/os/ManagedThread/TryInitialize(0).html">TryInitialize&lt;T, U, Stack&gt;</a></CODE> function, with the exception that there is no <CODE>panic</CODE> process when an error occurs inside the function. For details, see the <CODE><a href="../../../nn/os/ManagedThread/TryInitialize(0).html">TryInitialize&lt;T, U, Stack&gt;</a></CODE> function.
82            </p></div>
83    <h2>Description of <CODE>Initialize ( void(*)(T *), const T &, Stack &, s32, s32 )</CODE></h2>
84    <div class="section"><p>
85                Performs the same processing as the <CODE><a href="../../../nn/os/ManagedThread/Initialize(0).html">Initialize&lt;T, U, Stack&gt;</a></CODE> function, with the exception that the data referenced by <SPAN class="argument">param</SPAN> is copied to the buffer passed as the stack, and the pointer to that copied region is passed as the <SPAN class="argument">f</SPAN> argument. For details, see the <CODE><a href="../../../nn/os/ManagedThread/Initialize(0).html">Initialize&lt;T, U, Stack&gt;</a></CODE> function.
86            </p></div>
87    <h2>Description of <CODE>Initialize ( void(*)(const T *), const T &, Stack &, s32, s32 )</CODE></h2>
88    <div class="section"><p>
89                Performs the same processing as the <CODE><a href="../../../nn/os/ManagedThread/Initialize(0).html">Initialize&lt;T, U, Stack&gt;</a></CODE> function, with the exception that the data referenced by <SPAN class="argument">param</SPAN> is copied to the buffer passed as the stack, and the pointer to that copied region is passed as the <SPAN class="argument">f</SPAN> argument. For details, see the <CODE><a href="../../../nn/os/ManagedThread/Initialize(0).html">Initialize&lt;T, U, Stack&gt;</a></CODE> function.
90            </p></div>
91    <h2>Description of <CODE>Initialize ( void(*)(), Stack &, s32, s32 )</CODE></h2>
92    <div class="section"><p>
93                Performs the same processing as the <CODE> <a href="../../../nn/os/ManagedThread/Initialize(0).html">Initialize&lt;T, U, Stack&gt;</a></CODE> function, with the exception that a function that does not take arguments is used as the thread function. For details, see the <CODE><a href="../../../nn/os/ManagedThread/Initialize(0).html">Initialize&lt;T, U, Stack&gt;</a></CODE> function.
94            </p></div>
95  <hr><p>CONFIDENTIAL</p></body>
96</html>