nn::os::Thread::TryStart Member Function

Syntax

#include <nn/os.h>

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

template <typename T, typename U, typename Stack>
nn::Result TryStart(
     void(*)(T) f,
     U param,
     Stack & stack,
     s32 priority = DEFAULT_THREAD_PRIORITY,
     s32 coreNo = CORE_NO_USE_PROCESS_VALUE
);

List of Overloaded Member Functions

TryStart ( void(*)(), Stack &, s32, s32 ) Tries to initialize and run a thread.
TryStart ( void(*)(T), U, Stack &, s32, s32 ) Tries to initialize and run a thread.

Description of TryStart ( void(*)(), Stack &, 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 TryStart ( void(*)(T), U, Stack &, 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