StartUsingAutoStack

nn::os::Thread::StartUsingAutoStack Member Function

Syntax

#include <nn/os.h>

void StartUsingAutoStack(
     void(*)() f,
     size_t stackSize,
     s32 priority = DEFAULT_THREAD_PRIORITY,
     s32 coreNo = CORE_NO_USE_PROCESS_VALUE
);

Parameters

Name Description
in f Pointer to the function to begin running.
in stackSize The stack size.
in priority Priority of the thread.
in coreNo Preferred processor for the thread.

Return Values

None.

Description

Initializes and runs a thread.

Allocates a stack of the specified size with AutoStackManager and automatically destroys the stack when the thread is destroyed.

Revision History

2011/09/01
Deleted the note about specifying a preferred processor.
2011/06/22
Added a note about specifying a preferred processor.
2010/03/28
Clarified restrictions on stackSize argument.
2010/01/07
Initial version.

CONFIDENTIAL