.TH "std::lock_guard< _Mutex >" 3cxx "Wed Apr 11 2018" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::lock_guard< _Mutex > .SH SYNOPSIS .br .PP .SS "Public Types" .in +1c .ti -1c .RI "typedef _Mutex \fBmutex_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBlock_guard\fP (mutex_type &__m)" .br .ti -1c .RI "\fBlock_guard\fP (mutex_type &__m, \fBadopt_lock_t\fP)" .br .ti -1c .RI "\fBlock_guard\fP (const \fBlock_guard\fP &)=delete" .br .ti -1c .RI "\fBlock_guard\fP & \fBoperator=\fP (const \fBlock_guard\fP &)=delete" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::lock_guard< _Mutex >" A movable scoped lock type\&. A unique_lock controls mutex ownership within a scope\&. Ownership of the mutex can be delayed until after construction and can be transferred to another unique_lock by move construction or move assignment\&. If a mutex lock is owned when the destructor runs ownership will be released\&. .PP Definition at line 380 of file mutex\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.