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 <nn/os.h> 14 15template <typename Stack> 16<a href="../../../nn/Result/Overview.html">nn::Result</a> TryStart( 17 void(*)() f, 18 Stack & stack, 19 s32 priority = DEFAULT_THREAD_PRIORITY, 20 s32 coreNo = CORE_NO_USE_PROCESS_VALUE 21); 22 23template <typename T, typename U, typename Stack> 24<a href="../../../nn/Result/Overview.html">nn::Result</a> TryStart( 25 void(*)(T) f, 26 U param, 27 Stack & stack, 28 s32 priority = DEFAULT_THREAD_PRIORITY, 29 s32 coreNo = CORE_NO_USE_PROCESS_VALUE 30); 31</pre> 32 </div> 33<h2>List of Overloaded Member Functions</h2> 34 <div class="section"> 35 <table class="members"> 36 <tr> 37 <td> 38<a href="./TryStart(0).html">TryStart ( void(*)(), Stack &, s32, s32 ) </a> 39 </td> 40<td>Tries to initialize and run a thread.</td> 41 </tr> 42 <tr> 43 <td> 44<a href="./TryStart(1).html">TryStart ( void(*)(T), U, Stack &, s32, s32 ) </a> 45 </td> 46<td>Tries to initialize and run a thread.</td> 47 </tr> </table> 48 </div> 49<h2>Description of TryStart ( void(*)(), 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 any other such reason.</p></div> 51<h2>Description of TryStart ( void(*)(T), U, Stack &, s32, s32 )</h2> 52<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> 53 <hr><p>CONFIDENTIAL</p></body> 54</html>