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

The C++11 std::this_thread is a namespace in the <thread> header that contains functions for querying the current thread id and yielding the current thread execution.

Note that the actual behaviour of yield, sleep_for and sleep_until very much depends on the thread library and OS scheduler.

Compiler Explorer link: compiler-explorer.com/z/hzcb6e