nn::os::ManagedThread::TryInitialize Member Function#include <nn/os.h> template <typename Stack> nn::Result TryInitialize( void(*)() f, Stack & stack, s32 priority = PRIORITY_DEFAULT, s32 coreNo = CORE_NO_DEFAULT );
| Name | Description |
|---|---|
| Stack | Type representing stacks. |
| Name | Description | |
|---|---|---|
| in | f | Pointer to the function that will run on the created thread. |
| 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 a function that does not take arguments is used as the thread function. For details, see the TryInitialize<T, U, Stack> function.
CONFIDENTIAL