nn::os::Thread::TryStartUsingAutoStack Member Function

Syntax

#include <nn/os.h>

nn::Result TryStartUsingAutoStack(
     void(*)() f,
     size_t stackSize,
     s32 priority = DEFAULT_THREAD_PRIORITY,
     s32 coreNo = CORE_NO_USE_PROCESS_VALUE
);

Arguments

Name Description
in f Pointer to the function to begin running.
in stackSize Stack size.
in priority Priority of the thread.
in coreNo Specifies the thread's preferred processor and affinity mask.

Return Values

Returns the function's execution result.

Description

Tries to initialize and run a thread.

This function attempts to initialize and run a thread; it returns an error if it fails because of insufficient resources or any other such reason.

See Also

StartUsingAutoStack

Revision History

2010/01/07
Initial version.

CONFIDENTIAL