hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.4K
active users

Šimon Tóth

The C++20 std::counting_semaphore is a synchronization primitive that can limit the number of concurrent threads accessing a shared resource.

The typical use cases overlap with std::condition_variable; however, std::counting_semaphore offers a more straightforward interface and potentially better performance.

Compiler Explorer link: compiler-explorer.com/z/9daM1x