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>InitializeUsingAutoStack</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>::InitializeUsingAutoStack</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&gt;
16void InitializeUsingAutoStack(
17     void(*)(T) f,
18     U param,
19     size_t stackSize,
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&gt;
25void InitializeUsingAutoStack(
26     void(*)(T *) f,
27     const T & param,
28     size_t stackSize,
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&gt;
34void InitializeUsingAutoStack(
35     void(*)(const T *) f,
36     const T & param,
37     size_t stackSize,
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
42void InitializeUsingAutoStack(
43     void(*)() f,
44     size_t stackSize,
45     <a href="../../../nn_types/s32.html">s32</a> priority = PRIORITY_DEFAULT,
46     <a href="../../../nn_types/s32.html">s32</a> coreNo = CORE_NO_DEFAULT
47);
48</pre>
49    </div>
50    <h2>List of Overloaded Member Functions</h2>
51    <div class="section">
52      <table class="members">
53        <tr>
54          <td>
55            <a href="./InitializeUsingAutoStack(0).html"><CODE>InitializeUsingAutoStack ( void(*)(T), U, size_t, s32, s32 )</CODE> </a>
56          </td>
57          <td>Automatically allocates stack and creates thread.</td>
58        </tr>
59        <tr>
60          <td>
61            <a href="./InitializeUsingAutoStack(1).html"><CODE>InitializeUsingAutoStack ( void(*)(T *), const T &, size_t, s32, s32 )</CODE> </a>
62          </td>
63          <td>Automatically allocates stack and creates thread.</td>
64        </tr>
65        <tr>
66          <td>
67            <a href="./InitializeUsingAutoStack(2).html"><CODE>InitializeUsingAutoStack ( void(*)(const T *), const T &, size_t, s32, s32 )</CODE> </a>
68          </td>
69          <td>Automatically allocates stack and creates thread.</td>
70        </tr>
71        <tr>
72          <td>
73            <a href="./InitializeUsingAutoStack(3).html"><CODE>InitializeUsingAutoStack ( void(*)(), size_t, s32, s32 )</CODE> </a>
74          </td>
75          <td>Automatically allocates stack and creates thread.</td>
76        </tr> </table>
77    </div>
78    <h2>Description of <CODE>InitializeUsingAutoStack ( void(*)(T), U, size_t, s32, s32 ) </CODE></h2>
79    <div class="section"><p>
80                Performs the same processing as the <CODE><a href="../../../nn/os/ManagedThread/TryInitializeUsingAutoStack(0).html">TryInitializeUsingAutoStack&lt;T, U&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/TryInitializeUsingAutoStack(0).html">TryInitializeUsingAutoStack&lt;T, U&gt;</a></CODE> function.
81            </p></div>
82    <h2>Description of <CODE>InitializeUsingAutoStack ( void(*)(T *), const T &, size_t, s32, s32 )</CODE></h2>
83    <div class="section"><p>
84                Performs the same processing as the <CODE><a href="../../../nn/os/ManagedThread/InitializeUsingAutoStack(0).html">InitializeUsingAutoStack&lt;T, U&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/InitializeUsingAutoStack(0).html">InitializeUsingAutoStack&lt;T, U&gt;</a></CODE> function.
85            </p></div>
86    <h2>Description of <CODE>InitializeUsingAutoStack ( void(*)(const T *), const T &, size_t, s32, s32 )</CODE></h2>
87    <div class="section"><p>
88                Performs the same processing as the <CODE><a href="../../../nn/os/ManagedThread/InitializeUsingAutoStack(0).html">InitializeUsingAutoStack&lt;T, U&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/InitializeUsingAutoStack(0).html">InitializeUsingAutoStack&lt;T, U&gt;</a></CODE> function.
89            </p></div>
90    <h2>Description of <CODE>InitializeUsingAutoStack ( void(*)(), size_t, s32, s32 ) </CODE></h2>
91    <div class="section"><p>
92                Performs the same processing as the <CODE><a href="../../../nn/os/ManagedThread/InitializeUsingAutoStack(0).html">InitializeUsingAutoStack&lt;T, U&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/InitializeUsingAutoStack(0).html">InitializeUsingAutoStack&lt;T, U&gt;</a></CODE> function.
93            </p></div>
94  <hr><p>CONFIDENTIAL</p></body>
95</html>