Avoid double-checked locking with TSAN in parallel
Omit the first check of the double-checked locking pattern in recordException() in parallel.cpp when CV_THREAD_SANITIZER is defined. This should only slow recordException() down when the thread sanitizer is used, and avoids the TSAN data race warning.
Showing
想要评论请 注册 或 登录