Home
last modified time | relevance | path

Searched refs:thread_state (Results 1 – 25 of 44) sorted by relevance

12

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/
D1-1.c32 static int thread_state; variable
47 thread_state = ENTERED_THREAD; in fn_wr()
66 thread_state = EXITING_THREAD; in fn_wr()
89 thread_state = NOT_CREATED_THREAD; in main()
101 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
103 if (thread_state == EXITING_THREAD) { in main()
107 } else if (thread_state != ENTERED_THREAD) { in main()
125 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
127 if (thread_state == ENTERED_THREAD) { in main()
131 } else if (thread_state != EXITING_THREAD) { in main()
[all …]
D2-1.c43 static int thread_state; variable
69 thread_state = ENTERED_THREAD; in th_fn()
85 thread_state = EXITING_THREAD; in th_fn()
110 thread_state = NOT_CREATED_THREAD; in main()
120 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
122 if (thread_state == EXITING_THREAD) { in main()
127 } else if (thread_state != ENTERED_THREAD) { in main()
128 printf("sig_thread in unexpected state %d\n", thread_state); in main()
154 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
156 if (thread_state == 3) { in main()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/
D3-1.c35 static int thread_state; variable
53 thread_state = ENTERED_THREAD; in fn_chld()
71 thread_state = EXITING_THREAD; in fn_chld()
90 thread_state = NOT_CREATED_THREAD; in main()
100 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main()
102 if (thread_state == EXITING_THREAD) { in main()
107 } else if (thread_state != ENTERED_THREAD) { in main()
108 printf("Unexpected thread state: %d\n", thread_state); in main()
122 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main()
129 if (thread_state == EXITING_THREAD) { in main()
[all …]
D1-1.c30 static int thread_state; variable
38 thread_state = ENTERED_THREAD; in fn_chld()
51 thread_state = EXITING_THREAD; in fn_chld()
83 thread_state = NOT_CREATED_THREAD; in main()
93 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main()
95 if (thread_state == EXITING_THREAD) { in main()
100 } else if (thread_state != ENTERED_THREAD) { in main()
101 printf("Unexpected thread state: %d\n", thread_state); in main()
125 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
127 if (thread_state == ENTERED_THREAD) { in main()
[all …]
D3-2.c33 static int thread_state; variable
59 thread_state = ENTERED_THREAD; in fn_chld()
77 thread_state = EXITING_THREAD; in fn_chld()
97 thread_state = NOT_CREATED_THREAD; in main()
107 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main()
109 if (thread_state == EXITING_THREAD) { in main()
114 } else if (thread_state != ENTERED_THREAD) { in main()
147 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
149 if (thread_state == ENTERED_THREAD) { in main()
153 } else if (thread_state != EXITING_THREAD) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/
D4-1.c33 static int thread_state; variable
68 thread_state = ENTERED_THREAD; in th_fn()
84 thread_state = EXITING_THREAD; in th_fn()
106 thread_state = NOT_CREATED_THREAD; in main()
116 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
118 if (thread_state == EXITING_THREAD) { in main()
122 } else if (thread_state != ENTERED_THREAD) { in main()
123 printf("Unexpected thread state: %d\n", thread_state); in main()
149 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
151 if (thread_state == EXITING_THREAD) { in main()
[all …]
D1-1.c33 static int thread_state; variable
48 thread_state = ENTERED_THREAD; in fn_rd()
66 thread_state = EXITING_THREAD; in fn_rd()
91 thread_state = NOT_CREATED_THREAD; in main()
104 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
106 if (thread_state == ENTERED_THREAD) { in main()
111 } else if (thread_state != EXITING_THREAD) { in main()
136 thread_state = NOT_CREATED_THREAD; in main()
147 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
149 if (thread_state == EXITING_THREAD) { in main()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/
D1-1.c40 static int thread_state; variable
58 thread_state = ENTERED_THREAD; in fn_wr()
86 thread_state = EXITING_THREAD; in fn_wr()
102 thread_state = NOT_CREATED_THREAD; in main()
114 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main()
116 if (thread_state == EXITING_THREAD) { in main()
122 } else if (thread_state == ENTERED_THREAD) { in main()
127 printf("Unexpected state for thread0 %d\n", thread_state); in main()
144 thread_state = NOT_CREATED_THREAD; in main()
159 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main()
[all …]
D3-1.c42 static int thread_state; variable
60 thread_state = ENTERED_THREAD; in fn_wr()
106 thread_state = EXITING_THREAD; in fn_wr()
122 thread_state = NOT_CREATED_THREAD; in main()
134 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main()
136 if (thread_state == EXITING_THREAD) { in main()
142 } else if (thread_state == ENTERED_THREAD) { in main()
147 printf("Unexpected state for thread0 %d\n", thread_state); in main()
164 thread_state = NOT_CREATED_THREAD; in main()
179 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main()
[all …]
D5-1.c33 static int thread_state; variable
49 thread_state = ENTERED_THREAD; in fn_wr_1()
87 thread_state = EXITING_THREAD; in fn_wr_1()
94 thread_state = ENTERED_THREAD; in fn_wr_2()
131 thread_state = EXITING_THREAD; in fn_wr_2()
142 thread_state = NOT_CREATED_THREAD; in main()
155 } while (thread_state != 3 && cnt++ < 5); in main()
157 if (thread_state == 3) { in main()
164 } else if (thread_state == ENTERED_THREAD) { in main()
168 printf("Unexpected state for thread1 %d\n", thread_state); in main()
[all …]
D6-1.c42 static int thread_state; variable
93 thread_state = ENTERED_THREAD; in th_fn()
103 thread_state = EXITING_THREAD; in th_fn()
125 thread_state = NOT_CREATED_THREAD; in main()
136 } while (thread_state != ENTERED_THREAD && cnt++ < TIMEOUT); in main()
138 if (thread_state != ENTERED_THREAD) { in main()
139 printf("Unexpected thread state %d\n", thread_state); in main()
153 } while (thread_state != EXITING_THREAD && cnt++ < 2 * TIMEOUT); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/
D1-1.c35 static int thread_state; variable
51 thread_state = ENTERED_THREAD; in fn_rd_1()
66 thread_state = EXITING_THREAD; in fn_rd_1()
73 thread_state = ENTERED_THREAD; in fn_rd_2()
82 thread_state = EXITING_THREAD; in fn_rd_2()
110 thread_state = NOT_CREATED_THREAD; in main()
124 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
126 if (thread_state == ENTERED_THREAD) { in main()
131 } else if (thread_state != EXITING_THREAD) { in main()
133 thread_state); in main()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/
D1-1.c32 static int thread_state; variable
47 thread_state = ENTERED_THREAD; in fn_wr()
58 thread_state = EXITING_THREAD; in fn_wr()
84 thread_state = NOT_CREATED_THREAD; in main()
97 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
99 if (thread_state == ENTERED_THREAD) { in main()
104 } else if (thread_state != EXITING_THREAD) { in main()
106 thread_state); in main()
139 thread_state = NOT_CREATED_THREAD; in main()
150 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
D5-1.c36 static int thread_state; variable
42 thread_state = ENTERED_THREAD; in fn_rd_1()
80 thread_state = EXITING_THREAD; in fn_rd_1()
87 thread_state = ENTERED_THREAD; in fn_rd_2()
125 thread_state = EXITING_THREAD; in fn_rd_2()
136 thread_state = NOT_CREATED_THREAD; in main()
150 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main()
152 if (thread_state == EXITING_THREAD) { in main()
159 } else if (thread_state == ENTERED_THREAD) { in main()
164 printf("Unexpected state for thread1 %d\n", thread_state); in main()
[all …]
D1-1.c47 static int thread_state; variable
53 thread_state = ENTERED_THREAD; in fn_rd()
82 thread_state = EXITING_THREAD; in fn_rd()
104 thread_state = NOT_CREATED_THREAD; in main()
119 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main()
121 if (thread_state == ENTERED_THREAD) { in main()
126 } else if (thread_state != EXITING_THREAD) { in main()
127 printf("Unexpected thread state %d\n", thread_state); in main()
149 thread_state = NOT_CREATED_THREAD; in main()
160 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main()
[all …]
D3-1.c50 static int thread_state; variable
56 thread_state = ENTERED_THREAD; in fn_rd()
96 thread_state = EXITING_THREAD; in fn_rd()
118 thread_state = NOT_CREATED_THREAD; in main()
133 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main()
135 if (thread_state == ENTERED_THREAD) { in main()
140 } else if (thread_state != EXITING_THREAD) { in main()
141 printf("Unexpected thread state %d\n", thread_state); in main()
163 thread_state = NOT_CREATED_THREAD; in main()
174 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main()
[all …]
D2-1.c44 static int thread_state; variable
52 thread_state = ENTERED_THREAD; in fn_rd()
82 thread_state = EXITING_THREAD; in fn_rd()
107 thread_state = NOT_CREATED_THREAD; in main()
120 } while (thread_state != EXITING_THREAD && cnt++ < 5); in main()
122 if (thread_state == EXITING_THREAD) { in main()
128 } else if (thread_state == ENTERED_THREAD) { in main()
133 printf("Unexpected thread state %d\n", thread_state); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/
D1-2.c31 static volatile int thread_state; variable
40 thread_state = ENTERED_THREAD; in fn_chld()
65 thread_state = EXITING_THREAD; in fn_chld()
93 thread_state = NOT_CREATED_THREAD; in main()
106 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
108 if (thread_state == EXITING_THREAD) { in main()
112 } else if (thread_state != ENTERED_THREAD) { in main()
113 printf("main: Unexpected thread state %d\n", thread_state); in main()
127 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
129 if (thread_state == ENTERED_THREAD) { in main()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_unlock/
D1-2.c35 static volatile int thread_state; variable
44 thread_state = ENTERED_THREAD; in fn_chld()
66 thread_state = EXITING_THREAD; in fn_chld()
92 thread_state = NOT_CREATED_THREAD; in main()
103 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
105 if (thread_state == EXITING_THREAD) { in main()
109 } else if (thread_state != ENTERED_THREAD) { in main()
110 printf("main: Unexpected thread state %d\n", thread_state); in main()
124 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
126 if (thread_state == ENTERED_THREAD) { in main()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/
D1-1.c34 static int thread_state; variable
54 thread_state = ENTERED_THREAD; in fn_rd()
70 thread_state = PASSED_RLOCK1; in fn_rd()
86 thread_state = PASSED_RLOCK2; in fn_rd()
102 thread_state = EXITING_THREAD; in fn_rd()
126 thread_state = NOT_CREATED_THREAD; in main()
138 } while (thread_state != PASSED_RLOCK2 && cnt++ < 3); in main()
140 if (thread_state == ENTERED_THREAD) { in main()
143 } else if (thread_state == PASSED_RLOCK1) { in main()
147 } else if (thread_state != PASSED_RLOCK2) { in main()
[all …]
D2-1.c31 static int thread_state; variable
47 thread_state = ENTERED_THREAD; in fn_wr()
63 thread_state = EXITING_THREAD; in fn_wr()
86 thread_state = NOT_CREATED_THREAD; in main()
98 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
100 if (thread_state == EXITING_THREAD) { in main()
103 } else if (thread_state != ENTERED_THREAD) { in main()
104 printf("Unexpected thread state: %d\n", thread_state); in main()
119 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
121 if (thread_state != EXITING_THREAD) { in main()
D4-2.c32 static int rc, thread_state; variable
46 thread_state = ENTERED_THREAD; in fn_unlk()
49 thread_state = EXITING_THREAD; in fn_unlk()
77 thread_state = NOT_CREATED_THREAD; in main()
89 } while (thread_state != EXITING_THREAD && cnt++ < 3); in main()
91 if (thread_state != EXITING_THREAD) { in main()
92 printf("Unexpected thread state %d\n", thread_state); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/
D1-1.c26 static int thread_state; variable
31 thread_state = 2; in fn_rd()
48 thread_state = 3; in fn_rd()
57 thread_state = 0; in main()
75 thread_state = 1; in main()
88 } while (thread_state != 3 && cnt++ < 3); in main()
90 if (thread_state == 2) { in main()
93 } else if (thread_state != 3) { in main()
D2-1.c26 static int thread_state; variable
31 thread_state = 2; in fn_rd()
48 thread_state = 3; in fn_rd()
68 thread_state = 1; in main()
81 } while (thread_state != 3 && cnt++ < 3); in main()
83 if (thread_state == 2) { in main()
86 } else if (thread_state != 3) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/
D4-1.c32 static int thread_state; variable
44 thread_state = ENTERED_THREAD; in fn_chld()
56 thread_state = EXITING_THREAD; in fn_chld()
88 thread_state = NOT_CREATED_THREAD; in main()
98 } while (thread_state != EXITING_THREAD && cnt++ < 2); in main()
100 if (thread_state == EXITING_THREAD) { in main()
105 } else if (thread_state != ENTERED_THREAD) { in main()

12