std::latch is one of the simple synchronization primitives introduced with C++20. Latches are initialized to a specific count, can be atomically decreased and used to block until the count reaches zero. Compiler Explorer link: https://lnkd.in/eQJ--bC5 #cpp #cplusplus #coding #programming #dailybiteofcpp
A sort of barrier but more explicit?
Very interesting example!
Yeah, I'm not sure why we need this as well as barrier.