One if by latch, two if by barrier:
by Gajendra Gulgulia
From the article:
In this article, I’ll present a simple example of
std::barrierby means of game players playing a hypothetical card game and go into the details of the api of
std::barrierin another article...