Merge branch 'newactionlist' of /home/git/random-fuzzer into firefox-test
[c11tester.git] / include / mypthread.h
1 /**
2  * @file pthread.h
3  * @brief C11 pthread.h interface header
4  */
5 #ifndef PTHREAD_H
6 #define PTHREAD_H
7
8 #include <threads.h>
9 #include <sched.h>
10 #include <pthread.h>
11
12 /* pthread mutex types
13 enum
14 {
15   PTHREAD_MUTEX_NORMAL
16   PTHREAD_MUTEX_RECURSIVE
17   PTHREAD_MUTEX_ERRORCHECK
18   PTHREAD_MUTEX_DEFAULT
19 };*/
20
21 typedef void *(*pthread_start_t)(void *);
22
23 struct pthread_params {
24         pthread_start_t func;
25         void *arg;
26 };
27
28 struct pthread_attr
29 {
30         /* Scheduler parameters and priority.  */
31         struct sched_param schedparam;
32         int schedpolicy;
33         /* Various flags like detachstate, scope, etc.  */
34         int flags;
35         /* Size of guard area.  */
36         size_t guardsize;
37         /* Stack handling.  */
38         void *stackaddr;
39         size_t stacksize;
40         /* Affinity map.  */
41         cpu_set_t *cpuset;
42         size_t cpusetsize;
43 };
44
45 extern "C" {
46 int user_main(int, char**);
47 }
48
49 #endif