Lines Matching defs:LOCKABLE
3 #define LOCKABLE __attribute__ ((lockable))
27 class LOCKABLE Mutex {
215 // Lockable Attribute (l)
220 #if !__has_attribute(lockable)
221 #error "Should support lockable attribute"
224 class LOCKABLE LTestClass {
227 class __attribute__((lockable (1))) LTestClass_args { // \
228 // expected-error {{'lockable' attribute takes no arguments}}
231 void l_test_function() LOCKABLE; // \
232 // expected-warning {{'lockable' attribute only applies to classes}}
235 int x LOCKABLE = y; // \
236 // expected-warning {{'lockable' attribute only applies to classes}}
240 int l_test_var LOCKABLE; // \
241 // expected-warning {{'lockable' attribute only applies to classes}}
245 int test_field LOCKABLE; // \
246 // expected-warning {{'lockable' attribute only applies to classes}}
247 void test_method() LOCKABLE; // \
248 // expected-warning {{'lockable' attribute only applies to classes}}
252 void l_function_params(int lvar LOCKABLE); // \
253 // expected-warning {{'lockable' attribute only applies to classes}}
257 // Scoped Lockable Attribute (sl)
360 // expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'lockable' attribute; type here is 'class UnlockableMu'}}
431 // expected-warning {{'pt_guarded_by' attribute requires arguments whose type is annotated with 'lockable' attribute}}
492 // expected-warning {{'acquired_after' attribute requires arguments whose type is annotated with 'lockable' attribute}}
494 // expected-warning {{'acquired_after' attribute can only be applied in a context annotated with 'lockable' attribute}}
532 // be taken care of by warnings that ab__int is not lockable.
555 // expected-warning {{'acquired_before' attribute requires arguments whose type is annotated with 'lockable' attribute}}
557 // expected-warning {{'acquired_before' attribute can only be applied in a context annotated with 'lockable' attribute}}
620 // expected-warning {{'exclusive_lock_function' attribute requires arguments whose type is annotated with 'lockable' attribute}}
692 // expected-warning {{'shared_lock_function' attribute requires arguments whose type is annotated with 'lockable' attribute}}
774 // expected-warning {{'exclusive_trylock_function' attribute requires arguments whose type is annotated with 'lockable' attribute}}
848 // expected-warning {{'shared_trylock_function' attribute requires arguments whose type is annotated with 'lockable' attribute}}
911 // expected-warning {{'unlock_function' attribute requires arguments whose type is annotated with 'lockable' attribute}}
987 // expected-warning {{'lock_returned' attribute requires arguments whose type is annotated with 'lockable' attribute}}
1054 // expected-warning {{'locks_excluded' attribute requires arguments whose type is annotated with 'lockable' attribute}}
1121 // expected-warning {{'exclusive_locks_required' attribute requires arguments whose type is annotated with 'lockable' attribute}}
1189 // expected-warning {{'shared_locks_required' attribute requires arguments whose type is annotated with 'lockable' attribute}}
1287 class LOCKABLE EmptyArgListsTest {
1410 class LOCKABLE Base {
1431 // expected-warning {{'guarded_by' attribute requires arguments whose type is annotated with 'lockable' attribute; type here is 'class InheritanceTest::Derived3'}}