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.5K
active users

Šimon Tóth

C++20 introduced a standard tool for issuing stop requests: std::stop_source, std::stop_token, and std::stop_callback.

A std::stop_source can be used to request a stop, which can then be observed thread-safe through the associated std::stop_token. Any callbacks registered through a std::stop_callback will also be run when a stop is requested.

Compiler Explorer link: compiler-explorer.com/z/3s5b85