/external/compiler-rt/test/tsan/ |
H A D | mutex_cycle2.c | 13 pthread_mutex_t mu1, mu2; local 14 pthread_mutex_init(&mu1, NULL); 17 // mu1 => mu2 18 pthread_mutex_lock(&mu1); 21 pthread_mutex_unlock(&mu1); 23 // mu2 => mu1 25 pthread_mutex_lock(&mu1); 29 pthread_mutex_unlock(&mu1); 32 pthread_mutex_destroy(&mu1);
|
H A D | must_deadlock.cc | 12 pthread_mutex_t mu1, mu2; variable 16 // mu2 => mu1 19 pthread_mutex_lock(&mu1); 21 pthread_mutex_unlock(&mu1); 27 pthread_mutex_init(&mu1, NULL); 37 // mu1 => mu2 38 pthread_mutex_lock(&mu1); 42 pthread_mutex_unlock(&mu1); 46 pthread_mutex_destroy(&mu1);
|
/external/clang/test/Misc/ |
H A D | ast-dump-color.cpp | 25 } mu1, mu2; variable in typeref:class:Mutex 26 int TestExpr __attribute__((guarded_by(mu1))); 84 //CHECK: {{^}}[[Blue]]|-[[RESET]][[GREEN]]VarDecl[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:1[[RESET]], [[Yellow]]line:25:3[[RESET]]> [[Yellow]]col:3[[RESET]] referenced[[CYAN]] mu1[[RESET]] [[Green]]'class Mutex':'class Mutex'[[RESET]] 90 //CHECK: {{^}}[[Blue]]| `-[[RESET]][[MAGENTA]]DeclRefExpr[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]] <[[Yellow]]col:40[[RESET]]> [[Green]]'class Mutex':'class Mutex'[[RESET]][[Cyan]] lvalue[[RESET]][[Cyan]][[RESET]] [[GREEN]]Var[[RESET]][[Yellow]] 0x{{[0-9a-fA-F]*}}[[RESET]][[CYAN]] 'mu1'[[RESET]] [[Green]]'class Mutex':'class Mutex'[[RESET]]{{$}}
|
H A D | ast-dump-attr.cpp | 45 } mu1, mu2; variable in typeref:class:Mutex 46 int TestExpr __attribute__((guarded_by(mu1))); 49 // CHECK-NEXT: DeclRefExpr{{.*}}mu1 51 class Mutex TestVariadicExpr __attribute__((acquired_after(mu1, mu2))); 54 // CHECK-NEXT: DeclRefExpr{{.*}}mu1
|
/external/clang/test/Sema/ |
H A D | warn-thread-safety-analysis.c | 42 struct Mutex mu1; variable in typeref:struct:Mutex 43 struct Mutex mu2 ACQUIRED_AFTER(mu1); 44 struct Foo foo_ = {&mu1}; 51 int Foo_fun1(int i) SHARED_LOCKS_REQUIRED(mu2) EXCLUSIVE_LOCKS_REQUIRED(mu1) { 55 int Foo_fun2(int i) EXCLUSIVE_LOCKS_REQUIRED(mu2) SHARED_LOCKS_REQUIRED(mu1) { 59 int Foo_func3(int i) LOCKS_EXCLUDED(mu1, mu2) { 63 static int Bar_fun1(int i) EXCLUSIVE_LOCKS_REQUIRED(mu1) { 78 expected-warning{{calling function 'Foo_fun1' requires holding mutex 'mu1' exclusively}} 80 mutex_exclusive_lock(&mu1); 84 mutex_shared_lock(&mu1); // expecte [all...] |
/external/opencv/cv/src/ |
H A D | cvthresh.cpp | 211 double mu1 = 0, q1 = 0; local 253 mu1 = 0; 261 mu1 *= q1; 273 mu1 = (mu1 + val_i*p_i)/q1; 274 mu2 = (mu - q1*mu1)/q2; 275 sigma = q1*q2*(mu1 - mu2)*(mu1 - mu2);
|
/external/clang/test/SemaCXX/ |
H A D | warn-thread-safety-parsing.cpp | 63 Mutex mu1; variable 70 Mutex& muRef = mu1; 308 int gb_var_arg GUARDED_BY(mu1); 312 int gb_var_args __attribute__((guarded_by(mu1, mu2))); // \ 322 int gb_field_args GUARDED_BY(mu1); 325 class GUARDED_BY(mu1) GB { // \ 329 void gb_function() GUARDED_BY(mu1); // \ variable 332 void gb_function_params(int gv_lvar GUARDED_BY(mu1)); // \ 336 int x GUARDED_BY(mu1) = y; // \ 348 int gb_var_arg_5 GUARDED_BY(&mu1); variable 400 void pgb_function() PT_GUARDED_BY(mu1); // \\ variable 419 int * pgb_var_arg_5 PT_GUARDED_BY(&mu1); variable 462 void aa_function() ACQUIRED_AFTER(mu1); // \\ variable 480 Mutex aa_var_arg_5 ACQUIRED_AFTER(&mu1); variable 522 void ab_function() ACQUIRED_BEFORE(mu1); // \\ variable 543 Mutex ab_var_arg_5 ACQUIRED_BEFORE(&mu1); variable 608 int elf_function_5() EXCLUSIVE_LOCK_FUNCTION(&mu1); variable 680 int slf_function_5() SHARED_LOCK_FUNCTION(&mu1); variable 764 int etf_function_bad_1() EXCLUSIVE_TRYLOCK_FUNCTION(mu1); // \\ variable 838 int stf_function_bad_1() SHARED_TRYLOCK_FUNCTION(mu1); // \\ variable 899 int uf_function_5() UNLOCK_FUNCTION(&mu1); variable 938 void lr_function_arg() LOCK_RETURNED(mu1); variable 943 int lr_testfn(int y) LOCK_RETURNED(mu1); variable 975 int lr_function_5() LOCK_RETURNED(&mu1); variable 1006 void le_function_arg() LOCKS_EXCLUDED(mu1); variable 1010 int le_testfn(int y) LOCKS_EXCLUDED(mu1); variable 1042 int le_function_5() LOCKS_EXCLUDED(&mu1); variable 1073 void elr_function_arg() EXCLUSIVE_LOCKS_REQUIRED(mu1); variable 1077 int elr_testfn(int y) EXCLUSIVE_LOCKS_REQUIRED(mu1); variable 1109 int elr_function_5() EXCLUSIVE_LOCKS_REQUIRED(&mu1); variable 1141 void slr_function_arg() SHARED_LOCKS_REQUIRED(mu1); variable 1145 int slr_testfn(int y) SHARED_LOCKS_REQUIRED(mu1); variable 1177 int slr_function_5() SHARED_LOCKS_REQUIRED(&mu1); variable [all...] |
H A D | warn-thread-safety-analysis.cpp | 70 DoubleMutexLock(Mutex *mu1, Mutex *mu2) 71 __attribute__((exclusive_lock_function(mu1, mu2))); 930 Mutex mu1; member in namespace:thread_annot_lock_27_modified 931 Mutex mu2 ACQUIRED_AFTER(mu1); 935 int method1(int i) SHARED_LOCKS_REQUIRED(mu2) EXCLUSIVE_LOCKS_REQUIRED(mu1); 943 int foo(int i) EXCLUSIVE_LOCKS_REQUIRED(mu2) SHARED_LOCKS_REQUIRED(mu1); 948 static int bar(int i) EXCLUSIVE_LOCKS_REQUIRED(mu1); 956 mu1.Lock(); 962 mu1.Unlock(); 1093 int method1(int i) SHARED_LOCKS_REQUIRED(mu1, m 1095 Mutex *mu1; member in class:thread_annot_lock_66_modified::Foo 1225 Mutex mu1; member in namespace:thread_annot_lock_13 1433 Mutex mu1, mu2, mu3; member in class:thread_annot_lock_42::Foo 1502 Mutex *mu1; member in class:thread_annot_lock_67_modified::Foo 1638 Mutex mu1; member in struct:test_scoped_lockable::TestScopedLockable 4238 Mutex mu1; member in class:PtGuardedByTest::PtGuardedBySanityTest 4325 Mutex mu1; member in class:PtGuardedByTest::SmartPtr_PtGuardedBy_Test 4906 Mutex mu1; member in class:AcquiredBeforeAfterText::Foo2 4982 Mutex mu1; member in class:AcquiredBeforeAfterText::Foo4 5150 Mutex mu1; member in namespace:GlobalAcquiredBeforeAfterTest [all...] |
/external/valgrind/drd/tests/ |
H A D | tsan_unittest.cpp | 5386 Mutex mu1; member in namespace:test112 5401 mu1.Lock(); 5405 mu1.Unlock(); 6692 Mutex mu1; // This Mutex guards var. member in namespace:test301 6694 int var; // GUARDED_BY(mu1) 6697 MutexLock lock(&mu1); // Correct Mutex. 6987 int *PTR = NULL; // GUARDED_BY(mu1) 6989 Mutex mu1; // Protects PTR. member in namespace:test310 6995 MutexLock lock1(&mu1); // Protect PTR. 7001 MutexLock lock1(&mu1); // Protec 7048 Mutex mu1; // Protects PTR. member in namespace:test311 [all...] |