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
);

template <typename T, typename U>
nn::Result TryStartUsingAutoStack(
     void(*)(T) f,
     U param,
     size_t stackSize,
     s32 priority = DEFAULT_THREAD_PRIORITY,
     s32 coreNo = CORE_NO_USE_PROCESS_VALUE
);

List of Overloaded Member Functions

TryStartUsingAutoStack ( void(*)(), size_t, s32, s32 ) Tries to initialize and run a thread.
TryStartUsingAutoStack ( void(*)(T), U, size_t, s32, s32 ) Tries to initialize and run a thread.

Description of TryStartUsingAutoStack ( void(*)(), size_t, s32, s32 )

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.

Description of TryStartUsingAutoStack ( void(*)(T), U, size_t, s32, s32 )

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


CONFIDENTIAL