𝒔𝒕𝒅::𝒎𝒖𝒕𝒆𝒙 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: https://compiler-explorer.com/z/ePdojjEPj