nn::os::Thread::TryStart Member Function#include <nn/os.h> template <typename T, typename U, typename Stack> nn::Result TryStart( void(*)(T) f, U param, Stack & stack, s32 priority = DEFAULT_THREAD_PRIORITY, s32 coreNo = CORE_NO_USE_PROCESS_VALUE );
| Name | Description |
|---|---|
| T | Data type of argument(s) of the function to run (this type must be copyable). |
| U | A type that can be converted to T. |
| Stack | Type representing stacks. |
| Name | Description | |
|---|---|---|
| in | f | Pointer to the function to begin running. |
| in | param | Argument(s) to pass to the function to begin running. |
| in | stack | Object representing the stack region. |
| in | priority | Priority of the thread. |
| in | coreNo | Specifies the thread's preferred processor and affinity mask. |
Tries to initialize and run a thread.
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.
CONFIDENTIAL