Merge pull request #23185 from y-guyon:parallel_tsan_data_race

This commit is contained in:
Alexander Alekhin 2023-01-27 15:10:18 +00:00
commit bd9d60c4c6

View File

@ -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)