Lines Matching refs:LOCKS_EXCLUDED
19 #define LOCKS_EXCLUDED(...) __attribute__ ((locks_excluded(__VA_ARGS__)))
995 #if !__has_attribute(locks_excluded)
996 #error "Should support locks_excluded attribute"
1001 void le_function() __attribute__((locks_excluded)); // \
1004 void le_function_arg() LOCKS_EXCLUDED(mu1);
1006 void le_function_args() LOCKS_EXCLUDED(mu1, mu2);
1008 int le_testfn(int y) LOCKS_EXCLUDED(mu1);
1011 int x LOCKS_EXCLUDED(mu1) = y; // \
1012 // expected-warning {{'locks_excluded' attribute only applies to functions and methods}}
1016 int le_test_var LOCKS_EXCLUDED(mu1); // \
1017 // expected-warning {{'locks_excluded' attribute only applies to functions and methods}}
1019 void le_fun_params(int lvar LOCKS_EXCLUDED(mu1)); // \
1020 // expected-warning {{'locks_excluded' attribute only applies to functions and methods}}
1024 int test_field LOCKS_EXCLUDED(mu1); // \
1025 // expected-warning {{'locks_excluded' attribute only applies to functions and methods}}
1026 void test_method() LOCKS_EXCLUDED(mu1);
1029 class LOCKS_EXCLUDED(mu1) LeTestClass { // \
1030 // expected-warning {{'locks_excluded' attribute only applies to functions and methods}}
1036 int le_function_1() LOCKS_EXCLUDED(muWrapper.mu);
1037 int le_function_2() LOCKS_EXCLUDED(muDoubleWrapper.muWrapper->mu);
1038 int le_function_3() LOCKS_EXCLUDED(muWrapper.getMu());
1039 int le_function_4() LOCKS_EXCLUDED(*muWrapper.getMuPointer());
1040 int le_function_5() LOCKS_EXCLUDED(&mu1);
1041 int le_function_6() LOCKS_EXCLUDED(muRef);
1042 int le_function_7() LOCKS_EXCLUDED(muDoubleWrapper.getWrapper()->getMu());
1043 int le_function_8() LOCKS_EXCLUDED(muPointer);
1047 int le_function_bad_1() LOCKS_EXCLUDED(1); // \
1048 // expected-warning {{'locks_excluded' attribute requires arguments that are class type or point to class type}}
1049 int le_function_bad_2() LOCKS_EXCLUDED("mu"); // \
1050 // expected-warning {{ignoring 'locks_excluded' attribute because its argument is invalid}}
1051 int le_function_bad_3() LOCKS_EXCLUDED(muDoublePointer); // \
1052 // expected-warning {{'locks_excluded' attribute requires arguments that are class type or point to class type}}
1053 int le_function_bad_4() LOCKS_EXCLUDED(umu); // \
1054 // expected-warning {{'locks_excluded' attribute requires arguments whose type is annotated with 'lockable' attribute}}
1446 void Foo::bar(Mutex* mu) LOCKS_EXCLUDED(mu) { } // \
1448 // expected-warning {{attribute locks_excluded ignored, because it is not attached to a declaration}}