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

Variables with the thread_local storage specifier do not follow the regular variable lifetime. Instead, they are constructed before (typically at) their first ODR use and destroyed at thread exit.

Thread local variables do not suffer the initialization overhead of static variables. A "thread local" variable is only accessible from a single thread (each thread gets its copy).

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