nn::os::Thread::Start Member Function

Syntax

#include <nn/os.h>

template <typename Stack>
void Start(
     void(*)() f,
     Stack & stack,
     s32 priority = DEFAULT_THREAD_PRIORITY,
     s32 coreNo = CORE_NO_USE_PROCESS_VALUE
);

Template Arguments

Name Description
Stack Type representing stacks

Arguments

Name Description
in f Pointer to the function to begin running.
in stack Object representing the stack region
in priority Priority of the thread.
in coreNo Preferred processor for the thread.

Return Values

None.

Description

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.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL