Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

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

  • text

Yeah, I'm not sure why we need this as well as barrier.

Like
Reply

A sort of barrier but more explicit?

Like
Reply

Very interesting example!

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories