From 6d5a06227b44d1ae54a5686d1e1529d225ee81d8 Mon Sep 17 00:00:00 2001 From: Lectem Date: Tue, 16 Feb 2016 10:21:17 -0500 Subject: [PATCH] add a note for svcExitThread and the thread API Calling svcExitThread will make it so that threadCreate detached parameter won't work. --- libctru/include/3ds/thread.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libctru/include/3ds/thread.h b/libctru/include/3ds/thread.h index a92b46f..69998a2 100644 --- a/libctru/include/3ds/thread.h +++ b/libctru/include/3ds/thread.h @@ -31,6 +31,9 @@ typedef struct Thread_tag* Thread; * - Processor #2 is New3DS exclusive. Normal applications can create threads on this core if the exheader kernel flags bitmask has 0x2000 set. * - Processor #3 is New3DS exclusive. Normal applications cannot create threads on this core. * - Processes in the BASE memory region can always create threads on processors #2 and #3. + * + * @note Default exit code of a thread is 0. + * @warning @ref svcExitThread should never be called from the thread, use @ref threadExit instead. */ Thread threadCreate(ThreadFunc entrypoint, void* arg, size_t stack_size, int prio, int affinity, bool detached);