Make tsan detection gcc compatible

This commit is contained in:
ridiculousfish 2019-05-04 16:13:55 -07:00
parent ec45f31ad1
commit c0c7b0f86f

View file

@ -16,6 +16,9 @@
#define TOPIC_MONITOR_TSAN_WORKAROUND 1
#endif
#endif
#if __SANITIZE_THREAD__
#define TOPIC_MONITOR_TSAN_WORKAROUND 1
#endif
/// Implementation of the principal monitor. This uses new (and leaks) to avoid registering a
/// pointless at-exit handler for the dtor.