• Home
  • Raw
  • Download

Lines Matching refs:__attribute__

3 #define LOCKABLE            __attribute__ ((lockable))
4 #define SCOPED_LOCKABLE __attribute__ ((scoped_lockable))
5 #define GUARDED_BY(x) __attribute__ ((guarded_by(x)))
6 #define GUARDED_VAR __attribute__ ((guarded_var))
7 #define PT_GUARDED_BY(x) __attribute__ ((pt_guarded_by(x)))
8 #define PT_GUARDED_VAR __attribute__ ((pt_guarded_var))
9 #define ACQUIRED_AFTER(...) __attribute__ ((acquired_after(__VA_ARGS__)))
10 #define ACQUIRED_BEFORE(...) __attribute__ ((acquired_before(__VA_ARGS__)))
11 #define EXCLUSIVE_LOCK_FUNCTION(...) __attribute__ ((exclusive_lock_function(__VA_ARGS__)))
12 #define SHARED_LOCK_FUNCTION(...) __attribute__ ((shared_lock_function(__VA_ARGS__)))
13 #define ASSERT_EXCLUSIVE_LOCK(...) __attribute__ ((assert_exclusive_lock(__VA_ARGS__)))
14 #define ASSERT_SHARED_LOCK(...) __attribute__ ((assert_shared_lock(__VA_ARGS__)))
15 #define EXCLUSIVE_TRYLOCK_FUNCTION(...) __attribute__ ((exclusive_trylock_function(__VA_ARGS__)))
16 #define SHARED_TRYLOCK_FUNCTION(...) __attribute__ ((shared_trylock_function(__VA_ARGS__)))
17 #define UNLOCK_FUNCTION(...) __attribute__ ((unlock_function(__VA_ARGS__)))
18 #define LOCK_RETURNED(x) __attribute__ ((lock_returned(x)))
19 #define LOCKS_EXCLUDED(...) __attribute__ ((locks_excluded(__VA_ARGS__)))
21 __attribute__ ((exclusive_locks_required(__VA_ARGS__)))
23 __attribute__ ((shared_locks_required(__VA_ARGS__)))
24 #define NO_THREAD_SAFETY_ANALYSIS __attribute__ ((no_thread_safety_analysis))
27 class __attribute__((lockable)) Mutex {
29 void Lock() __attribute__((exclusive_lock_function));
30 void ReaderLock() __attribute__((shared_lock_function));
31 void Unlock() __attribute__((unlock_function));
32 bool TryLock() __attribute__((exclusive_trylock_function(true)));
33 bool ReaderTryLock() __attribute__((shared_trylock_function(true)));
34 void LockWhen(const int &cond) __attribute__((exclusive_lock_function));