Lines Matching full:warning
17 pthread_mutex_lock(&mtx1); // no-warning in ok1()
23 pthread_mutex_unlock(&mtx1); // no-warning in ok2()
29 pthread_mutex_lock(&mtx1); // no-warning in ok3()
30 pthread_mutex_unlock(&mtx1); // no-warning in ok3()
31 pthread_mutex_lock(&mtx1); // no-warning in ok3()
32 pthread_mutex_unlock(&mtx1); // no-warning in ok3()
38 pthread_mutex_lock(&mtx1); // no-warning in ok4()
39 pthread_mutex_unlock(&mtx1); // no-warning in ok4()
40 pthread_mutex_lock(&mtx2); // no-warning in ok4()
41 pthread_mutex_unlock(&mtx2); // no-warning in ok4()
47 if (pthread_mutex_trylock(&mtx1) == 0) // no-warning in ok5()
48 pthread_mutex_unlock(&mtx1); // no-warning in ok5()
54 lck_mtx_lock(&lck1); // no-warning in ok6()
60 if (lck_mtx_try_lock(&lck1) != 0) // no-warning in ok7()
61 lck_mtx_unlock(&lck1); // no-warning in ok7()
67 pthread_mutex_lock(&mtx1); // no-warning in ok8()
68 pthread_mutex_lock(&mtx2); // no-warning in ok8()
69 pthread_mutex_unlock(&mtx2); // no-warning in ok8()
70 pthread_mutex_unlock(&mtx1); // no-warning in ok8()
76 pthread_mutex_unlock(&mtx1); // no-warning in ok9()
77 if (pthread_mutex_trylock(&mtx1) == 0) // no-warning in ok9()
78 pthread_mutex_unlock(&mtx1); // no-warning in ok9()
84 if (pthread_mutex_trylock(&mtx1) != 0) // no-warning in ok10()
85 pthread_mutex_lock(&mtx1); // no-warning in ok10()
86 pthread_mutex_unlock(&mtx1); // no-warning in ok10()
92 pthread_mutex_destroy(&mtx1); // no-warning in ok11()
98 pthread_mutex_destroy(&mtx1); // no-warning in ok12()
99 pthread_mutex_destroy(&mtx2); // no-warning in ok12()
105 pthread_mutex_unlock(&mtx1); // no-warning in ok13()
106 pthread_mutex_destroy(&mtx1); // no-warning in ok13()
112 pthread_mutex_unlock(&mtx1); // no-warning in ok14()
113 pthread_mutex_destroy(&mtx1); // no-warning in ok14()
114 pthread_mutex_unlock(&mtx2); // no-warning in ok14()
115 pthread_mutex_destroy(&mtx2); // no-warning in ok14()
121 pthread_mutex_lock(&mtx1); // no-warning in ok15()
122 pthread_mutex_unlock(&mtx1); // no-warning in ok15()
123 pthread_mutex_destroy(&mtx1); // no-warning in ok15()
129 pthread_mutex_init(&mtx1, NULL); // no-warning in ok16()
135 pthread_mutex_init(&mtx1, NULL); // no-warning in ok17()
136 pthread_mutex_init(&mtx2, NULL); // no-warning in ok17()
142 pthread_mutex_destroy(&mtx1); // no-warning in ok18()
143 pthread_mutex_init(&mtx1, NULL); // no-warning in ok18()
149 pthread_mutex_destroy(&mtx1); // no-warning in ok19()
150 pthread_mutex_init(&mtx1, NULL); // no-warning in ok19()
151 pthread_mutex_destroy(&mtx2); // no-warning in ok19()
152 pthread_mutex_init(&mtx2, NULL); // no-warning in ok19()
158 pthread_mutex_unlock(&mtx1); // no-warning in ok20()
159 pthread_mutex_destroy(&mtx1); // no-warning in ok20()
160 pthread_mutex_init(&mtx1, NULL); // no-warning in ok20()
161 pthread_mutex_destroy(&mtx1); // no-warning in ok20()
162 pthread_mutex_init(&mtx1, NULL); // no-warning in ok20()
167 pthread_mutex_lock(pmtx); // no-warning in ok21()
168 pthread_mutex_unlock(pmtx); // no-warning in ok21()
173 pthread_mutex_lock(pmtx); // no-warning in ok22()
174 pthread_mutex_unlock(pmtx); // no-warning in ok22()
175 pthread_mutex_lock(pmtx); // no-warning in ok22()
176 pthread_mutex_unlock(pmtx); // no-warning in ok22()
183 pthread_mutex_lock(&mtx1); // no-warning in bad1()
184 pthread_mutex_lock(&mtx1); // expected-warning{{This lock has already been acquired}} in bad1()
190 pthread_mutex_lock(&mtx1); // no-warning in bad2()
191 pthread_mutex_unlock(&mtx1); // no-warning in bad2()
192 pthread_mutex_lock(&mtx1); // no-warning in bad2()
193 pthread_mutex_lock(&mtx1); // expected-warning{{This lock has already been acquired}} in bad2()
199 pthread_mutex_lock(&mtx1); // no-warning in bad3()
200 pthread_mutex_lock(&mtx2); // no-warning in bad3()
201 pthread_mutex_unlock(&mtx1); // expected-warning{{This was not the most recently acquired lock}} in bad3()
208 if (pthread_mutex_trylock(&mtx1)) // no-warning in bad4()
210 pthread_mutex_lock(&mtx2); // no-warning in bad4()
211 pthread_mutex_unlock(&mtx1); // expected-warning{{This was not the most recently acquired lock}} in bad4()
217 lck_mtx_lock(&lck1); // no-warning in bad5()
218 lck_mtx_lock(&lck1); // expected-warning{{This lock has already been acquired}} in bad5()
224 lck_mtx_lock(&lck1); // no-warning in bad6()
225 lck_mtx_unlock(&lck1); // no-warning in bad6()
226 lck_mtx_lock(&lck1); // no-warning in bad6()
227 lck_mtx_lock(&lck1); // expected-warning{{This lock has already been acquired}} in bad6()
233 lck_mtx_lock(&lck1); // no-warning in bad7()
234 lck_mtx_lock(&lck2); // no-warning in bad7()
235 lck_mtx_unlock(&lck1); // expected-warning{{This was not the most recently acquired lock}} in bad7()
242 if (lck_mtx_try_lock(&lck1) == 0) // no-warning in bad8()
244 lck_mtx_lock(&lck2); // no-warning in bad8()
245 lck_mtx_unlock(&lck1); // expected-warning{{This was not the most recently acquired lock}} in bad8()
251 lck_mtx_unlock(&lck1); // no-warning in bad9()
252 lck_mtx_unlock(&lck1); // expected-warning{{This lock has already been unlocked}} in bad9()
258 lck_mtx_lock(&lck1); // no-warning in bad10()
259 lck_mtx_unlock(&lck1); // no-warning in bad10()
260 lck_mtx_unlock(&lck1); // expected-warning{{This lock has already been unlocked}} in bad10()
266 lck_mtx_unlock(lock); // expected-warning{{This lock has already been unlocked}} in bad11_sub()
272 lck_mtx_lock(&lck1); // no-warning in bad11()
273 lck_mtx_unlock(&lck1); // no-warning in bad11()
281 pthread_mutex_lock(&mtx1); // no-warning in bad12()
282 pthread_mutex_unlock(&mtx1); // no-warning in bad12()
283 pthread_mutex_lock(&mtx1); // no-warning in bad12()
284 pthread_mutex_unlock(&mtx1); // no-warning in bad12()
285 pthread_mutex_unlock(&mtx1); // expected-warning{{This lock has already been unlocked}} in bad12()
291 pthread_mutex_lock(&mtx1); // no-warning in bad13()
292 pthread_mutex_unlock(&mtx1); // no-warning in bad13()
293 pthread_mutex_lock(&mtx2); // no-warning in bad13()
294 pthread_mutex_unlock(&mtx2); // no-warning in bad13()
295 pthread_mutex_unlock(&mtx1); // expected-warning{{This lock has already been unlocked}} in bad13()
301 pthread_mutex_lock(&mtx1); // no-warning in bad14()
302 pthread_mutex_lock(&mtx2); // no-warning in bad14()
303 pthread_mutex_unlock(&mtx2); // no-warning in bad14()
304 pthread_mutex_unlock(&mtx1); // no-warning in bad14()
305 pthread_mutex_unlock(&mtx2); // expected-warning{{This lock has already been unlocked}} in bad14()
311 pthread_mutex_lock(&mtx1); // no-warning in bad15()
312 pthread_mutex_lock(&mtx2); // no-warning in bad15()
313 pthread_mutex_unlock(&mtx2); // no-warning in bad15()
314 pthread_mutex_unlock(&mtx1); // no-warning in bad15()
315 pthread_mutex_lock(&mtx1); // no-warning in bad15()
316 pthread_mutex_unlock(&mtx2); // expected-warning{{This lock has already been unlocked}} in bad15()
322 pthread_mutex_destroy(&mtx1); // no-warning in bad16()
323 pthread_mutex_lock(&mtx1); // expected-warning{{This lock has already been destroyed}} in bad16()
329 pthread_mutex_destroy(&mtx1); // no-warning in bad17()
330 pthread_mutex_unlock(&mtx1); // expected-warning{{This lock has already been destroyed}} in bad17()
336 pthread_mutex_destroy(&mtx1); // no-warning in bad18()
337 pthread_mutex_destroy(&mtx1); // expected-warning{{This lock has already been destroyed}} in bad18()
343 pthread_mutex_lock(&mtx1); // no-warning in bad19()
344 pthread_mutex_destroy(&mtx1); // expected-warning{{This lock is still locked}} in bad19()
350 lck_mtx_destroy(&mtx1, &grp1); // no-warning in bad20()
351 lck_mtx_lock(&mtx1); // expected-warning{{This lock has already been destroyed}} in bad20()
357 lck_mtx_destroy(&mtx1, &grp1); // no-warning in bad21()
358 lck_mtx_unlock(&mtx1); // expected-warning{{This lock has already been destroyed}} in bad21()
364 lck_mtx_destroy(&mtx1, &grp1); // no-warning in bad22()
365 lck_mtx_destroy(&mtx1, &grp1); // expected-warning{{This lock has already been destroyed}} in bad22()
371 lck_mtx_lock(&mtx1); // no-warning in bad23()
372 lck_mtx_destroy(&mtx1, &grp1); // expected-warning{{This lock is still locked}} in bad23()
378 pthread_mutex_init(&mtx1, NULL); // no-warning in bad24()
379 pthread_mutex_init(&mtx1, NULL); // expected-warning{{This lock has already been initialized}} in bad24()
385 pthread_mutex_lock(&mtx1); // no-warning in bad25()
386 pthread_mutex_init(&mtx1, NULL); // expected-warning{{This lock is still being held}} in bad25()
392 pthread_mutex_unlock(&mtx1); // no-warning in bad26()
393 pthread_mutex_init(&mtx1, NULL); // expected-warning{{This lock has already been initialized}} in bad26()