We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f39f8a + 847b16f commit 7079e7eCopy full SHA for 7079e7e
modules/core/src/parallel_impl.cpp
@@ -382,6 +382,16 @@ class ParallelJob
382
};
383
384
385
+// Disable thread sanitization check when CV_USE_GLOBAL_WORKERS_COND_VAR is not
386
+// set because it triggers as the main thread reads isActive while the children
387
+// thread writes it (but it all works out because a mutex is locked in the main
388
+// thread and isActive re-checked).
389
+// This is to solve issue #19463.
390
+#if !defined(CV_USE_GLOBAL_WORKERS_COND_VAR) && defined(__clang__) && defined(__has_feature)
391
+#if __has_feature(thread_sanitizer)
392
+__attribute__((no_sanitize("thread")))
393
+#endif
394
395
void WorkerThread::thread_body()
396
{
397
(void)cv::utils::getThreadID(); // notify OpenCV about new thread
0 commit comments