mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
21 lines
439 B
C
21 lines
439 B
C
#pragma once
|
|
#include "../types.h"
|
|
|
|
typedef struct {
|
|
Handle handle;
|
|
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);
|
|
|
|
Result threadPause(Thread* t);
|
|
Result threadResume(Thread* t);
|