nn::os::ManagedThread::Initialize Member Function

Syntax

#include <nn/os.h>

template <typename T, typename U, typename Stack>
void Initialize(
     void(*)(T) f,
     U param,
     Stack & stack,
     s32 priority = PRIORITY_DEFAULT,
     s32 coreNo = CORE_NO_DEFAULT
);

template <typename T, typename Stack>
void Initialize(
     void(*)(T *) f,
     const T & param,
     Stack & stack,
     s32 priority = PRIORITY_DEFAULT,
     s32 coreNo = CORE_NO_DEFAULT
);

template <typename T, typename Stack>
void Initialize(
     void(*)(const T *) f,
     const T & param,
     Stack & stack,
     s32 priority = PRIORITY_DEFAULT,
     s32 coreNo = CORE_NO_DEFAULT
);

template <typename Stack>
void Initialize(
     void(*)() f,
     Stack & stack,
     s32 priority = PRIORITY_DEFAULT,
     s32 coreNo = CORE_NO_DEFAULT
);

List of Overloaded Member Functions

Initialize ( void(*)(T), U, Stack &, s32, s32 ) Specifies a buffer for the stack and creates a thread.
Initialize ( void(*)(T *), const T &, Stack &, s32, s32 ) Specifies a buffer for the stack and creates a thread.
Initialize ( void(*)(const T *), const T &, Stack &, s32, s32 ) Specifies a buffer for the stack and creates a thread.
Initialize ( void(*)(), Stack &, s32, s32 ) Specifies a buffer for the stack and creates a thread.

Description of Initialize ( void(*)(T), U, Stack &, s32, s32 )

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

Description of Initialize ( void(*)(T *), const T &, Stack &, s32, s32 )

Performs the same processing as the Initialize<T, U, Stack> 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 Initialize<T, U, Stack> function.

Description of Initialize ( void(*)(const T *), const T &, Stack &, s32, s32 )

Performs the same processing as the Initialize<T, U, Stack> 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 Initialize<T, U, Stack> function.

Description of Initialize ( void(*)(), Stack &, s32, s32 )

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


CONFIDENTIAL