2 * @brief C11 Thread Library Functionality
8 /* Forward declaration */
10 typedef class Thread *__thread_identifier;
12 /* For C, we just need an opaque pointer */
13 typedef void *__thread_identifier;
20 typedef void (*thrd_start_t)(void *);
23 __thread_identifier priv;
26 int thrd_create(thrd_t *t, thrd_start_t start_routine, void *arg);
27 int thrd_join(thrd_t);
28 void thrd_yield(void);
29 thrd_t thrd_current(void);
31 int user_main(int, char**);
37 #endif /* __THREADS_H__ */