TSan exam:
[libcds.git] / cds / compiler / feature_tsan.h
index cecbadc519bc0f7e8d746f219128edf64ed86589..1a05a17d851fa838bf6eb70f9990068bde428831 100644 (file)
@@ -6,6 +6,8 @@
 // Thread Sanitizer annotations.
 // From https://groups.google.com/d/msg/thread-sanitizer/SsrHB7FTnTk/mNTGNLQj-9cJ
 
+//@cond
+
 #ifdef CDS_THREAD_SANITIZER_ENABLED
 #   define CDS_TSAN_ANNOTATE_HAPPENS_BEFORE(addr)   AnnotateHappensBefore(__FILE__, __LINE__, reinterpret_cast<void*>(addr))\r
 #   define CDS_TSAN_ANNOTATE_HAPPENS_AFTER(addr)    AnnotateHappensAfter(__FILE__, __LINE__, reinterpret_cast<void*>(addr))\r
@@ -31,7 +33,9 @@
         void AnnotateIgnoreWritesBegin(const char *f, int l);\r
         void AnnotateIgnoreWritesEnd(const char *f, int l);\r
     }\r
-#else\r
+\r
+#else // CDS_THREAD_SANITIZER_ENABLED\r
+\r
 #   define CDS_TSAN_ANNOTATE_HAPPENS_BEFORE(addr)\r
 #   define CDS_TSAN_ANNOTATE_HAPPENS_AFTER(addr)
 
@@ -41,6 +45,8 @@
 #   define CDS_TSAN_ANNOTATE_IGNORE_WRITES_END\r
 #   define CDS_TSAN_ANNOTATE_IGNORE_RW_BEGIN\r
 #   define CDS_TSAN_ANNOTATE_IGNORE_RW_END\r
+\r
 #endif
 
+//@endcond
 #endif  // #ifndef CDSLIB_COMPILER_FEATURE_TSAN_H