explicit lock_guard( mutex_type& m );
lock_guard( mutex_type& m, std::adopt_lock_t t );
Acquires ownership of the given mutex
m is not a recursive mutex, requires that the current thread does not own
m. Effectively calls m.lock().
2) Requires that the current thread owns
The behavior is undefined if
m is destroyed before the
lock_guard object is.
|m||-||mutex to acquire ownership of|
|t||-||tag parameter used to select non-locking version of the constructor|