We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e615c1 commit 00e9aa9Copy full SHA for 00e9aa9
1 file changed
src/culverin/culverin_compiler_specifics.h
@@ -102,6 +102,19 @@ static inline uint64_t rdtsc() {
102
# define CULV_MAYBE_UNUSED
103
#endif
104
105
+// Force TSan to ignore a specific function
106
+#if defined(__has_feature)
107
+# if __has_feature(thread_sanitizer)
108
+# define CULV_NO_TSAN __attribute__((no_sanitize("thread")))
109
+# else
110
+# define CULV_NO_TSAN
111
+# endif
112
+#elif defined(__SANITIZE_THREAD__)
113
114
+#else
115
116
+#endif
117
+
118
// NOLINTNEXTLINE(readability-identifier-naming)
119
#define PyCFunction_DeclareMethod CULV_NODISCARD static PyObject *
120
0 commit comments