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>TryInitialize</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>::TryInitialize</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;
16<a href="../../../nn/Result/Overview.html">nn::Result</a> TryInitialize(
17     void(*)() f,
18     Stack & stack,
19     <a href="../../../nn_types/s32.html">s32</a> priority = PRIORITY_DEFAULT,
20     <a href="../../../nn_types/s32.html">s32</a> coreNo = CORE_NO_DEFAULT
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>Parameters</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 that will run on the created thread.</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 being created.</td>
62        </tr>
63        <tr>
64          <td>in</td>
65          <th>coreNo</th>
66          <td>Preferred processor for the thread being created.</td>
67        </tr> </table>
68    </div>
69    <h2>Return Values</h2>
70    <div class="section">Returns the function's execution result. </div>
71    <h2>Description</h2>
72    <div class="section">
73      <p>Specifies a buffer for the stack and creates a thread.</p><p>
74                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 a function that does not take arguments is used as the thread function. For details, see the <CODE><a href="../../../nn/os/ManagedThread/TryInitialize(0).html">TryInitialize&lt;T, U, Stack&gt;</a></CODE> function.
75            </p></div>
76    <h2>Revision History</h2>
77    <div class="section">
78      <dl class="history">
79        <dt>2012/04/13</dt>
80        <dd>Initial version.<br />
81        </dd>
82      </dl>
83    </div>
84  <hr><p>CONFIDENTIAL</p></body>
85</html>