diff --git a/modules/core/src/parallel.cpp b/modules/core/src/parallel.cpp index a4a7baf0f6d4..efecefc4b4ab 100644 --- a/modules/core/src/parallel.cpp +++ b/modules/core/src/parallel.cpp @@ -263,7 +263,9 @@ namespace { void recordException(const cv::String& msg) #endif { +#ifndef CV_THREAD_SANITIZER if (!hasException) +#endif { cv::AutoLock lock(cv::getInitializationMutex()); if (!hasException)