Files
rpmalloc/test/thread.h
Mattias Jansson 7eb62ee892 Test cases (#45)
2018-01-23 10:06:06 +01:00

28 lines
366 B
C
Vendored

#include <stdint.h>
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);
extern void
thread_fence(void);