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:

8.9K
active users

Šimon Tóth

𝒔𝒕𝒅::𝒎𝒖𝒕𝒆𝒙 is a mutual exclusion lock that permits only one owning thread to hold the lock, protecting a shared resource from simultaneous access by multiple threads.

Because manually unlocking the 𝒔𝒕𝒅::𝒎𝒖𝒕𝒆𝒙 is potentially error-prone, using an RAII-based wrapper such as 𝒔𝒕𝒅::𝒖𝒏𝒊𝒒𝒖𝒆_𝒍𝒐𝒄𝒌 is highly recommended.

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