mutex
A lock that lets only one thread at a time into a section of code.
A std::mutex provides mutual exclusion; lock it with an RAII guard (std::scoped_lock, std::lock_guard, std::unique_lock) so it is always released.
See also
A lock that lets only one thread at a time into a section of code.
A std::mutex provides mutual exclusion; lock it with an RAII guard (std::scoped_lock, std::lock_guard, std::unique_lock) so it is always released.
See also