Skip to content

Commit 7507a77

Browse files
committed
thread: don't use sem_clockwait with TSAN
1 parent c9fc496 commit 7507a77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/thread_pthread.h

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
#endif
9292
#endif
9393

94+
/* Thread sanitizer doesn't currently support sem_clockwait */
95+
#ifdef _Py_THREAD_SANITIZER
96+
#undef HAVE_SEM_CLOCKWAIT
97+
#endif
9498

9599
/* Whether or not to use semaphores directly rather than emulating them with
96100
* mutexes and condition variables:

0 commit comments

Comments
 (0)