nn::os::ManagedThread::InitializeUsingAutoStack Member Function

Syntax

#include <nn/os.h>

template <typename T, typename U>
void InitializeUsingAutoStack(
     void(*)(T) f,
     U param,
     size_t stackSize,
     s32 priority = PRIORITY_DEFAULT,
     s32 coreNo = CORE_NO_DEFAULT
);

template <typename T>
void InitializeUsingAutoStack(
     void(*)(T *) f,
     const T & param,
     size_t stackSize,
     s32 priority = PRIORITY_DEFAULT,
     s32 coreNo = CORE_NO_DEFAULT
);

template <typename T>
void InitializeUsingAutoStack(
     void(*)(const T *) f,
     const T & param,
     size_t stackSize,
     s32 priority = PRIORITY_DEFAULT,
     s32 coreNo = CORE_NO_DEFAULT
);

void InitializeUsingAutoStack(
     void(*)() f,
     size_t stackSize,
     s32 priority = PRIORITY_DEFAULT,
     s32 coreNo = CORE_NO_DEFAULT
);

List of Overloaded Member Functions

InitializeUsingAutoStack ( void(*)(T), U, size_t, s32, s32 ) Automatically allocates stack and creates thread.
InitializeUsingAutoStack ( void(*)(T *), const T &, size_t, s32, s32 ) Automatically allocates stack and creates thread.
InitializeUsingAutoStack ( void(*)(const T *), const T &, size_t, s32, s32 ) Automatically allocates stack and creates thread.
InitializeUsingAutoStack ( void(*)(), size_t, s32, s32 ) Automatically allocates stack and creates thread.

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

Performs the same processing as the TryInitializeUsingAutoStack<T, U> function, with the exception that there is no panic process when an error occurs inside the function. For details, see the TryInitializeUsingAutoStack<T, U> function.

Description of InitializeUsingAutoStack ( void(*)(T *), const T &, size_t, s32, s32 )

Performs the same processing as the InitializeUsingAutoStack<T, U> function, with the exception that the data referenced by param is copied to the buffer passed as the stack, and the pointer to that copied region is passed as the f argument. For details, see the InitializeUsingAutoStack<T, U> function.

Description of InitializeUsingAutoStack ( void(*)(const T *), const T &, size_t, s32, s32 )

Performs the same processing as the InitializeUsingAutoStack<T, U> function, with the exception that the data referenced by param is copied to the buffer passed as the stack, and the pointer to that copied region is passed as the f argument. For details, see the InitializeUsingAutoStack<T, U> function.

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

Performs the same processing as the InitializeUsingAutoStack<T, U> function, with the exception that a function that does not take arguments is used as the thread function. For details, see the InitializeUsingAutoStack<T, U> function.


CONFIDENTIAL