libnx/nx/include/switch/kernel/thread.h
2017-10-08 18:39:33 +02:00

17 lines
381 B
C

typedef struct {
Handle handle;
ThreadFunc entry;
void* arg;
void* stack_mem;
void* stack_mirror;
size_t stack_sz;
} Thread;
Result threadCreate(
Thread* t, ThreadFunc entry, void* arg, size_t stack_sz, int prio,
int cpuid);
Result threadStart(Thread* t);
Result threadWaitForExit(Thread* t);
Result threadClose(Thread* t);