clockvector: add print() method
[c11tester.git] / libthreads.h
1 #ifndef __LIBTHREADS_H__
2 #define __LIBTHREADS_H__
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8         typedef void (*thrd_start_t)(void *);
9
10         typedef int thrd_t;
11
12         int thrd_create(thrd_t *t, thrd_start_t start_routine, void *arg);
13         int thrd_join(thrd_t);
14         int thrd_yield(void);
15         thrd_t thrd_current(void);
16
17         void user_main(void);
18
19 #ifdef __cplusplus
20 }
21 #endif
22
23 #endif /* __LIBTHREADS_H__ */