mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Merge pull request #19480 from vrabaud:3.4
This commit is contained in:
commit
7079e7ea5e
@ -382,6 +382,16 @@ public:
|
||||
};
|
||||
|
||||
|
||||
// Disable thread sanitization check when CV_USE_GLOBAL_WORKERS_COND_VAR is not
|
||||
// set because it triggers as the main thread reads isActive while the children
|
||||
// thread writes it (but it all works out because a mutex is locked in the main
|
||||
// thread and isActive re-checked).
|
||||
// This is to solve issue #19463.
|
||||
#if !defined(CV_USE_GLOBAL_WORKERS_COND_VAR) && defined(__clang__) && defined(__has_feature)
|
||||
#if __has_feature(thread_sanitizer)
|
||||
__attribute__((no_sanitize("thread")))
|
||||
#endif
|
||||
#endif
|
||||
void WorkerThread::thread_body()
|
||||
{
|
||||
(void)cv::utils::getThreadID(); // notify OpenCV about new thread
|
||||
|
Loading…
Reference in New Issue
Block a user