.TH "std::unique_lock< _Mutex >" 3cxx "Fri May 28 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::unique_lock< _Mutex > \- A movable scoped lock type\&. .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 "\fBunique_lock\fP (const \fBunique_lock\fP &)=delete" .br .ti -1c .RI "\fBunique_lock\fP (mutex_type &__m)" .br .ti -1c .RI "\fBunique_lock\fP (mutex_type &__m, \fBadopt_lock_t\fP) noexcept" .br .ti -1c .RI "template \fBunique_lock\fP (mutex_type &__m, const \fBchrono::duration\fP< _Rep, _Period > &__rtime)" .br .ti -1c .RI "template \fBunique_lock\fP (mutex_type &__m, const \fBchrono::time_point\fP< _Clock, _Duration > &__atime)" .br .ti -1c .RI "\fBunique_lock\fP (mutex_type &__m, \fBdefer_lock_t\fP) noexcept" .br .ti -1c .RI "\fBunique_lock\fP (mutex_type &__m, \fBtry_to_lock_t\fP)" .br .ti -1c .RI "\fBunique_lock\fP (\fBunique_lock\fP &&__u) noexcept" .br .ti -1c .RI "void \fBlock\fP ()" .br .ti -1c .RI "mutex_type * \fBmutex\fP () const noexcept" .br .ti -1c .RI "\fBoperator bool\fP () const noexcept" .br .ti -1c .RI "\fBunique_lock\fP & \fBoperator=\fP (const \fBunique_lock\fP &)=delete" .br .ti -1c .RI "\fBunique_lock\fP & \fBoperator=\fP (\fBunique_lock\fP &&__u) noexcept" .br .ti -1c .RI "bool \fBowns_lock\fP () const noexcept" .br .ti -1c .RI "mutex_type * \fBrelease\fP () noexcept" .br .ti -1c .RI "void \fBswap\fP (\fBunique_lock\fP &__u) noexcept" .br .ti -1c .RI "bool \fBtry_lock\fP ()" .br .ti -1c .RI "template bool \fBtry_lock_for\fP (const \fBchrono::duration\fP< _Rep, _Period > &__rtime)" .br .ti -1c .RI "template bool \fBtry_lock_until\fP (const \fBchrono::time_point\fP< _Clock, _Duration > &__atime)" .br .ti -1c .RI "void \fBunlock\fP ()" .br .in -1c .SH "Detailed Description" .PP .SS "template .br class std::unique_lock< _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 59 of file unique_lock\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.