/external/valgrind/unittest/ |
D | deadlock_unittest.cc | 163 Mutex mu1, mu2; variable 166 mu2.Lock(); in Worker1() 167 mu2.Unlock(); in Worker1() 172 mu2.Lock(); in Worker2() 175 mu2.Unlock(); in Worker2() 188 Mutex mu1, mu2, mu3, mu4; variable 190 mu1.Lock(); mu2.Lock(); in Worker1() 191 mu2.Unlock(); mu1.Unlock(); in Worker1() 195 mu2.Lock(); mu3.Lock(); in Worker2() 196 mu3.Unlock(); mu2.Unlock(); in Worker2()
|
D | demo_tests.cc | 43 Mutex mu2; // This Mutex is not related to var. variable 52 MutexLock lock(&mu2); // Wrong Mutex. in Thread2() 331 Mutex mu2; // Unrelated to PTR. variable 341 MutexLock lock2(&mu2); // This lock is unrelated to PTR. in Writer2() 351 MutexLock lock2(&mu2); // Oh, gosh, this is a wrong mutex! in Reader() 389 Mutex mu2; // Unrelated to PTR. variable 399 MutexLock lock2(&mu2); // This lock is unrelated to PTR. in GoodWriter2() 410 MutexLock lock2(&mu2); // Wrong mutex! in BuggyWriter()
|
/external/clang/test/Sema/ |
D | warn-thread-safety-analysis.c | 46 struct Mutex mu2 ACQUIRED_AFTER(mu1); 54 int Foo_fun1(int i) SHARED_LOCKS_REQUIRED(mu2) EXCLUSIVE_LOCKS_REQUIRED(mu1) { in Foo_fun1() 58 int Foo_fun2(int i) EXCLUSIVE_LOCKS_REQUIRED(mu2) SHARED_LOCKS_REQUIRED(mu1) { in Foo_fun2() 62 int Foo_func3(int i) LOCKS_EXCLUDED(mu1, mu2) { in Foo_func3() 84 mutex_shared_lock(&mu2); in main() 89 mutex_unlock(&mu2); in main() 91 mutex_exclusive_lock(&mu2); in main() 94 mutex_unlock(&mu2); in main()
|
/external/valgrind/unittest/output_tests/ |
D | output_test1.cc | 3 Mutex mu2; // This Mutex is not related to var. variable 12 MutexLock lock(&mu2); // Wrong Mutex. in Thread2()
|
/external/clang/test/Misc/ |
D | ast-dump-attr.cpp | 45 } mu1, mu2; variable 51 class Mutex TestVariadicExpr __attribute__((acquired_after(mu1, mu2)));
|
D | ast-dump-color.cpp | 25 } mu1, mu2; variable
|
/external/clang/test/SemaCXX/ |
D | warn-thread-safety-parsing.cpp | 65 Mutex mu2; variable 310 int gb_var_args __attribute__((guarded_by(mu1, mu2))); // \ 381 int *pgb_ptr_var_args __attribute__((pt_guarded_by(mu1, mu2))); // \ 572 void elf_function_args() EXCLUSIVE_LOCK_FUNCTION(mu1, mu2); 644 void slf_function_args() SHARED_LOCK_FUNCTION(mu1, mu2); 718 void etf_function_args() EXCLUSIVE_TRYLOCK_FUNCTION(1, mu2); 791 void stf_function_args() SHARED_TRYLOCK_FUNCTION(1, mu2); 863 void uf_function_args() UNLOCK_FUNCTION(mu1, mu2); 938 void lr_function_args() __attribute__((lock_returned(mu1, mu2))); // \ 1006 void le_function_args() LOCKS_EXCLUDED(mu1, mu2); [all …]
|
D | warn-thread-safety-analysis.cpp | 888 Mutex mu2 ACQUIRED_AFTER(mu1); 892 int method1(int i) SHARED_LOCKS_REQUIRED(mu2) EXCLUSIVE_LOCKS_REQUIRED(mu1); 900 int foo(int i) EXCLUSIVE_LOCKS_REQUIRED(mu2) SHARED_LOCKS_REQUIRED(mu1); 914 mu2.Lock(); in main() 917 mu2.Unlock(); in main() 1050 int method1(int i) SHARED_LOCKS_REQUIRED(mu1, mu, mu2); 1053 Mutex *mu2; member in thread_annot_lock_66_modified::Foo 1065 a.mu2->Lock(); in main() 1071 a.mu2->Unlock(); in main() 1183 Mutex mu2; variable [all …]
|
/external/opencv/cv/src/ |
D | cvthresh.cpp | 258 double p_i, q2, mu2, val_i, sigma; in icvGetThreshVal_Otsu() local 274 mu2 = (mu - q1*mu1)/q2; in icvGetThreshVal_Otsu() 275 sigma = q1*q2*(mu1 - mu2)*(mu1 - mu2); in icvGetThreshVal_Otsu()
|
/external/valgrind/main/drd/tests/ |
D | tsan_unittest.cpp | 6689 Mutex mu2; // This Mutex is not related to var. variable 6698 MutexLock lock(&mu2); // Wrong Mutex. in Thread2() 6986 Mutex mu2; // Unrelated to PTR. variable 6996 MutexLock lock2(&mu2); // This lock is unrelated to PTR. in Writer2() 7006 MutexLock lock2(&mu2); // Oh, gosh, this is a wrong mutex! in Reader() 7045 Mutex mu2; // Unrelated to PTR. variable 7055 MutexLock lock2(&mu2); // This lock is unrelated to PTR. in GoodWriter2() 7066 MutexLock lock2(&mu2); // Wrong mutex! in BuggyWriter()
|