nn::os::Thread::StartUsingAutoStack Member Function#include <nn/os.h>
template <typename T, typename U>
void StartUsingAutoStack(
void(*)(T) f,
U param,
size_t stackSize,
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. |
| Name | Description | |
|---|---|---|
| in | f | Pointer to the function to begin running. |
| in | param |
Argument to pass to the function that begins execution. |
| in | stackSize | The stack size. |
| in | priority | Priority of the thread. |
| in | coreNo | Preferred processor for the thread. |
Initializes and runs a thread.
Allocates a stack of the specified size using AutoStackManager and automatically destroys the stack when the thread is destroyed.
CONFIDENTIAL