Namespaces | Macros | Functions
thread_annotations.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 thread_safety_analysis
 

Macros

#define ACQUIRED_AFTER(...)   THREAD_ANNOTATION_ATTRIBUTE__(acquired_after(__VA_ARGS__))
 
#define ACQUIRED_BEFORE(...)   THREAD_ANNOTATION_ATTRIBUTE__(acquired_before(__VA_ARGS__))
 
#define ASSERT_EXCLUSIVE_LOCK(...)   THREAD_ANNOTATION_ATTRIBUTE__(assert_exclusive_lock(__VA_ARGS__))
 
#define ASSERT_SHARED_LOCK(...)   THREAD_ANNOTATION_ATTRIBUTE__(assert_shared_lock(__VA_ARGS__))
 
#define EXCLUSIVE_LOCK_FUNCTION(...)   THREAD_ANNOTATION_ATTRIBUTE__(exclusive_lock_function(__VA_ARGS__))
 
#define EXCLUSIVE_LOCKS_REQUIRED(...)   THREAD_ANNOTATION_ATTRIBUTE__(exclusive_locks_required(__VA_ARGS__))
 
#define EXCLUSIVE_TRYLOCK_FUNCTION(...)   THREAD_ANNOTATION_ATTRIBUTE__(exclusive_trylock_function(__VA_ARGS__))
 
#define GUARDED_BY(x)   THREAD_ANNOTATION_ATTRIBUTE__(guarded_by(x))
 
#define GUARDED_BY_FIXME(x)
 
#define LOCK_RETURNED(x)   THREAD_ANNOTATION_ATTRIBUTE__(lock_returned(x))
 
#define LOCKABLE   THREAD_ANNOTATION_ATTRIBUTE__(lockable)
 
#define LOCKS_EXCLUDED(...)   THREAD_ANNOTATION_ATTRIBUTE__(locks_excluded(__VA_ARGS__))
 
#define NO_THREAD_SAFETY_ANALYSIS   THREAD_ANNOTATION_ATTRIBUTE__(no_thread_safety_analysis)
 
#define NO_THREAD_SAFETY_ANALYSIS_FIXME   NO_THREAD_SAFETY_ANALYSIS
 
#define PT_GUARDED_BY(x)   THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded_by(x))
 
#define SCOPED_LOCKABLE   THREAD_ANNOTATION_ATTRIBUTE__(scoped_lockable)
 
#define SHARED_LOCK_FUNCTION(...)   THREAD_ANNOTATION_ATTRIBUTE__(shared_lock_function(__VA_ARGS__))
 
#define SHARED_LOCKS_REQUIRED(...)   THREAD_ANNOTATION_ATTRIBUTE__(shared_locks_required(__VA_ARGS__))
 
#define SHARED_TRYLOCK_FUNCTION(...)   THREAD_ANNOTATION_ATTRIBUTE__(shared_trylock_function(__VA_ARGS__))
 
#define THREAD_ANNOTATION_ATTRIBUTE__(x)
 
#define TS_FIXME(x)   ""
 
#define TS_UNCHECKED(x)   ""
 
#define TS_UNCHECKED_READ(x)   thread_safety_analysis::ts_unchecked_read(x)
 
#define UNLOCK_FUNCTION(...)   THREAD_ANNOTATION_ATTRIBUTE__(unlock_function(__VA_ARGS__))
 

Functions

template<typename T >
const T & thread_safety_analysis::ts_unchecked_read (const T &v) NO_THREAD_SAFETY_ANALYSIS
 
template<typename T >
T & thread_safety_analysis::ts_unchecked_read (T &v) NO_THREAD_SAFETY_ANALYSIS
 

Macro Definition Documentation

◆ ACQUIRED_AFTER

#define ACQUIRED_AFTER (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(acquired_after(__VA_ARGS__))

Definition at line 99 of file thread_annotations.h.

◆ ACQUIRED_BEFORE

#define ACQUIRED_BEFORE (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(acquired_before(__VA_ARGS__))

Definition at line 102 of file thread_annotations.h.

◆ ASSERT_EXCLUSIVE_LOCK

#define ASSERT_EXCLUSIVE_LOCK (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(assert_exclusive_lock(__VA_ARGS__))

Definition at line 205 of file thread_annotations.h.

◆ ASSERT_SHARED_LOCK

#define ASSERT_SHARED_LOCK (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(assert_shared_lock(__VA_ARGS__))

Definition at line 208 of file thread_annotations.h.

◆ EXCLUSIVE_LOCK_FUNCTION

#define EXCLUSIVE_LOCK_FUNCTION (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(exclusive_lock_function(__VA_ARGS__))

Definition at line 170 of file thread_annotations.h.

◆ EXCLUSIVE_LOCKS_REQUIRED

#define EXCLUSIVE_LOCKS_REQUIRED (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(exclusive_locks_required(__VA_ARGS__))

Definition at line 128 of file thread_annotations.h.

◆ EXCLUSIVE_TRYLOCK_FUNCTION

#define EXCLUSIVE_TRYLOCK_FUNCTION (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(exclusive_trylock_function(__VA_ARGS__))

Definition at line 195 of file thread_annotations.h.

◆ GUARDED_BY

#define GUARDED_BY (   x)    THREAD_ANNOTATION_ATTRIBUTE__(guarded_by(x))

Definition at line 60 of file thread_annotations.h.

◆ GUARDED_BY_FIXME

#define GUARDED_BY_FIXME (   x)

Definition at line 243 of file thread_annotations.h.

◆ LOCK_RETURNED

#define LOCK_RETURNED (   x)    THREAD_ANNOTATION_ATTRIBUTE__(lock_returned(x))

Definition at line 147 of file thread_annotations.h.

◆ LOCKABLE

#define LOCKABLE   THREAD_ANNOTATION_ATTRIBUTE__(lockable)

Definition at line 153 of file thread_annotations.h.

◆ LOCKS_EXCLUDED

#define LOCKS_EXCLUDED (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(locks_excluded(__VA_ARGS__))

Definition at line 139 of file thread_annotations.h.

◆ NO_THREAD_SAFETY_ANALYSIS

#define NO_THREAD_SAFETY_ANALYSIS   THREAD_ANNOTATION_ATTRIBUTE__(no_thread_safety_analysis)

Definition at line 216 of file thread_annotations.h.

◆ NO_THREAD_SAFETY_ANALYSIS_FIXME

#define NO_THREAD_SAFETY_ANALYSIS_FIXME   NO_THREAD_SAFETY_ANALYSIS

Definition at line 238 of file thread_annotations.h.

◆ PT_GUARDED_BY

#define PT_GUARDED_BY (   x)    THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded_by(x))

Definition at line 82 of file thread_annotations.h.

◆ SCOPED_LOCKABLE

#define SCOPED_LOCKABLE   THREAD_ANNOTATION_ATTRIBUTE__(scoped_lockable)

Definition at line 163 of file thread_annotations.h.

◆ SHARED_LOCK_FUNCTION

#define SHARED_LOCK_FUNCTION (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(shared_lock_function(__VA_ARGS__))

Definition at line 177 of file thread_annotations.h.

◆ SHARED_LOCKS_REQUIRED

#define SHARED_LOCKS_REQUIRED (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(shared_locks_required(__VA_ARGS__))

Definition at line 131 of file thread_annotations.h.

◆ SHARED_TRYLOCK_FUNCTION

#define SHARED_TRYLOCK_FUNCTION (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(shared_trylock_function(__VA_ARGS__))

Definition at line 198 of file thread_annotations.h.

◆ THREAD_ANNOTATION_ATTRIBUTE__

#define THREAD_ANNOTATION_ATTRIBUTE__ (   x)

Definition at line 40 of file thread_annotations.h.

◆ TS_FIXME

#define TS_FIXME (   x)    ""

Definition at line 231 of file thread_annotations.h.

◆ TS_UNCHECKED

#define TS_UNCHECKED (   x)    ""

Definition at line 226 of file thread_annotations.h.

◆ TS_UNCHECKED_READ

#define TS_UNCHECKED_READ (   x)    thread_safety_analysis::ts_unchecked_read(x)

Definition at line 248 of file thread_annotations.h.

◆ UNLOCK_FUNCTION

#define UNLOCK_FUNCTION (   ...)    THREAD_ANNOTATION_ATTRIBUTE__(unlock_function(__VA_ARGS__))

Definition at line 184 of file thread_annotations.h.



abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:22