summaryrefslogtreecommitdiff
path: root/thread_annotations.h
diff options
context:
space:
mode:
Diffstat (limited to 'thread_annotations.h')
-rw-r--r--thread_annotations.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/thread_annotations.h b/thread_annotations.h
new file mode 100644
index 0000000..c66e861
--- /dev/null
+++ b/thread_annotations.h
@@ -0,0 +1,60 @@
+#ifndef CARTOGRAPHER_COMMON_THREAD_ANNOTATIONS_H
+#define CARTOGRAPHER_COMMON_THREAD_ANNOTATIONS_H
+
+#ifndef LOCKS_EXCLUDED
+#define LOCKS_EXCLUDED(...)
+#endif
+
+#ifndef GUARDED_BY
+#define GUARDED_BY(x)
+#endif
+
+#ifndef EXCLUSIVE_LOCKS_REQUIRED
+#define EXCLUSIVE_LOCKS_REQUIRED(...)
+#endif
+
+#ifndef SHARED_LOCKS_REQUIRED
+#define SHARED_LOCKS_REQUIRED(...)
+#endif
+
+#ifndef ACQUIRED_BEFORE
+#define ACQUIRED_BEFORE(...)
+#endif
+
+#ifndef ACQUIRED_AFTER
+#define ACQUIRED_AFTER(...)
+#endif
+
+#ifndef REQUIRES
+#define REQUIRES(...)
+#endif
+
+#ifndef ACQUIRE
+#define ACQUIRE(...)
+#endif
+
+#ifndef RELEASE
+#define RELEASE(...)
+#endif
+
+#ifndef EXCLUDES
+#define EXCLUDES(...)
+#endif
+
+#ifndef ASSERT_EXCLUSIVE_LOCK
+#define ASSERT_EXCLUSIVE_LOCK(...)
+#endif
+
+#ifndef ASSERT_SHARED_LOCK
+#define ASSERT_SHARED_LOCK(...)
+#endif
+
+#ifndef RETURN_CAPABILITY
+#define RETURN_CAPABILITY(x)
+#endif
+
+#ifndef NO_THREAD_SAFETY_ANALYSIS
+#define NO_THREAD_SAFETY_ANALYSIS
+#endif
+
+#endif // CARTOGRAPHER_COMMON_THREAD_ANNOTATIONS_H