nn::os::ManagedThread::TryInitialize Member Function#include <nn/os.h> template <typename T, typename Stack> nn::Result TryInitialize( void(*)(const T *) f, const T & param, Stack & stack, s32 priority = PRIORITY_DEFAULT, s32 coreNo = CORE_NO_DEFAULT );
| Name | Description |
|---|---|
| T | Data type of argument(s) of the function to run (this type must be copyable). |
| Stack | Type representing stacks. |
| Name | Description | |
|---|---|---|
| in | f | Pointer to the function that will run on the created thread. |
| in | param | Parameter to pass for the f argument. |
| in | stack | Object representing the stack region. |
| in | priority | Priority of the thread being created. |
| in | coreNo | Preferred processor for the thread being created. |
Specifies a buffer for the stack and creates a thread.
Performs the same processing as the TryInitialize<T, U, Stack> function, with the exception that the data referenced by param is copied to the buffer passed as the stack, and the pointer to that copied region is passed as the f argument. For details, see the TryInitialize<T, U, Stack> function.
CONFIDENTIAL