void(* ThreadFunc)(void *)
Thread entrypoint function.
Definition: types.h:47
Handle handle
Thread handle.
Definition: thread.h:12
Result threadStart(Thread *t)
Starts the execution of a thread.
u32 Handle
Kernel object handle.
Definition: types.h:45
u32 Result
Function error code result type.
Definition: types.h:46
Result threadResume(Thread *t)
Resumes the execution of a thread, after having been paused.
size_t stack_sz
Stack size.
Definition: thread.h:15
Result threadCreate(Thread *t, ThreadFunc entry, void *arg, size_t stack_sz, int prio, int cpuid)
Creates a thread.
Result threadClose(Thread *t)
Frees up resources associated with a thread.
Result threadWaitForExit(Thread *t)
Waits for a thread to finish executing.
void * stack_mem
Pointer to stack memory.
Definition: thread.h:13
void * stack_mirror
Pointer to stack memory mirror.
Definition: thread.h:14
Result threadPause(Thread *t)
Pauses the execution of a thread.
Thread information structure.
Definition: thread.h:11