blob: 062970eba0d5899957b8dd3f2b140dfb9fefa8e3 [file] [log] [blame]
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
struct thread_arg {
void (*fn)(void*);
void* arg;
};
typedef struct thread_arg thread_arg;
extern uintptr_t
thread_run(thread_arg* arg);
extern void
thread_exit(uintptr_t value);
extern uintptr_t
thread_join(uintptr_t handle);
extern void
thread_sleep(int milliseconds);
extern void
thread_yield(void);
#ifdef __cplusplus
}
#endif