1 post tagged #thread-sanitizer.
#thread-sanitizer
Stock clang-tidy checks stay silent on a std::function moved down a by-value chain, and one of them flags the corrected code. A short custom query check finds the three bad sites, and ThreadSanitizer reports the wrong-thread destructor on libc++ when the destructor touches thread-confined state.
// We use Google Analytics to understand which posts get traction and how the wro.cpp community grows. Anonymised, no ads, and you can decline -- the site works either way.