Merge pull request #23185 from y-guyon:parallel_tsan_data_race
This commit is contained in:
commit
bd9d60c4c6
@ -263,7 +263,9 @@ namespace {
|
|||||||
void recordException(const cv::String& msg)
|
void recordException(const cv::String& msg)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
#ifndef CV_THREAD_SANITIZER
|
||||||
if (!hasException)
|
if (!hasException)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
cv::AutoLock lock(cv::getInitializationMutex());
|
cv::AutoLock lock(cv::getInitializationMutex());
|
||||||
if (!hasException)
|
if (!hasException)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user