nn::os::Thread::Start Member Function#include <nn/os.h>
template <typename T, typename U, typename Stack>
void Start(
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 to pass to the function that begins execution. |
| in | stack | Object representing the stack region |
| in | priority | Priority of the thread. |
| in | coreNo | Preferred processor for the thread. |
Initializes and runs a thread.
Initializes a thread using a stack prepared by the user application, then starts the thread. The stack region must be maintained until it is confirmed that the thread has been terminated.
Note:In the present implementation, the application cannot specify a preferred processor. You MUST specify CORE_NO_USE_PROCESS_VALUE.
CONFIDENTIAL