This source file includes following definitions.
- main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #include <config.h>
20
21 #include <pthread.h>
22
23 #include "verify.h"
24
25
26
27 pthread_t t1;
28 pthread_attr_t t2;
29
30 pthread_once_t t3 = PTHREAD_ONCE_INIT;
31
32 pthread_mutex_t t4 = PTHREAD_MUTEX_INITIALIZER;
33 pthread_mutexattr_t t5;
34
35 pthread_rwlock_t t6 = PTHREAD_RWLOCK_INITIALIZER;
36 pthread_rwlockattr_t t7;
37
38 pthread_cond_t t8 = PTHREAD_COND_INITIALIZER;
39 pthread_condattr_t t9;
40
41 pthread_key_t t10;
42
43 pthread_spinlock_t t11;
44
45 #ifdef TODO
46 pthread_barrier_t t12;
47 pthread_barrierattr_t t13;
48 #endif
49
50
51
52
53 int ds[] = { PTHREAD_CREATE_JOINABLE, PTHREAD_CREATE_DETACHED };
54
55
56 void *canceled = PTHREAD_CANCELED;
57
58
59 int mt[] = {
60 PTHREAD_MUTEX_DEFAULT,
61 PTHREAD_MUTEX_NORMAL,
62 PTHREAD_MUTEX_RECURSIVE,
63 PTHREAD_MUTEX_ERRORCHECK
64 };
65
66 #ifdef TODO
67
68
69 int mr[] = { PTHREAD_MUTEX_ROBUST, PTHREAD_MUTEX_STALLED };
70
71
72 int bp[] = { PTHREAD_PROCESS_SHARED, PTHREAD_PROCESS_PRIVATE };
73
74
75 int bw[] = { PTHREAD_BARRIER_SERIAL_THREAD };
76
77
78 int cs[] = { PTHREAD_CANCEL_ENABLE, PTHREAD_CANCEL_DISABLE };
79
80
81 int ct[] = { PTHREAD_CANCEL_DEFERRED, PTHREAD_CANCEL_ASYNCHRONOUS };
82
83 #endif
84
85
86 int
87 main (void)
88 {
89 return 0;
90 }