std::lock_guard<Mutex>::lock_guard - cppreference.com
https://en.cppreference.com/w/cpp/thread/lock_guard/lock_guard
WEBOct 22, 2023 · lock_guard. Acquires ownership of the given mutex m . 1) Effectively calls m.lock(). 2) Acquires ownership of the mutex m without attempting to lock it. The behavior is undefined if the current thread does not hold a non-shared lock (i.e., a lock acquired by lock, try_lock, try_lock_for, or try_lock_until) on m. 3) Copy constructor is deleted.
DA: 41 PA: 74 MOZ Rank: 22