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>TryStart</title>
8  </head>
9  <body>
10<h1><CODE>nn::os::Thread::TryStart</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">#include &lt;nn/os.h&gt;
14template &lt;typename Stack&gt;
15<a href="../../../nn/Result/Overview.html">nn::Result</a> TryStart(
16     void(*)() f,
17     Stack & stack,
18     s32 priority = DEFAULT_THREAD_PRIORITY,
19     s32 coreNo = CORE_NO_USE_PROCESS_VALUE
20);
21template &lt;typename T, typename U, typename Stack&gt;
22<a href="../../../nn/Result/Overview.html">nn::Result</a> TryStart(
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="./TryStart(0).html">TryStart ( void(*)(), Stack &, s32, s32 ) </a>
37          </td>
38<td>Tries to initialize and run a thread.</td>
39        </tr>
40        <tr>
41          <td>
42<a href="./TryStart(1).html">TryStart ( void(*)(T), U, Stack &, s32, s32 ) </a>
43          </td>
44<td>Tries to initialize and run a thread.</td>
45        </tr> </table>
46    </div>
47<h2>Description of TryStart ( void(*)(), Stack &, s32, s32 )</h2>
48<div class="section"><p>This function attempts to initialize and run a thread; it returns an error if it fails because of insufficient resources or any other such reason.</p></div>
49<h2>Description of TryStart ( void(*)(T), U, Stack &, s32, s32 )</h2>
50<div class="section"><p>This function attempts to initialize and run a thread; it returns an error if it fails because of insufficient resources or for any other such reason.</p></div>
51  <hr><p>CONFIDENTIAL</p></body>
52</html>
53