1 post tagged #jthread.
#jthread
A std::jthread member declared before the data it uses breaks at both ends of the object's life. ThreadSanitizer reports the construction end, exit 66, on GCC 16.2 and clang trunk. The destruction end is silent for an atomic and reported for a vector. GCC 16.2 -Wall -Wextra -Weffc++ and clang trunk -Weverything say nothing about the order.
// 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.