.TH "std::mutex" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::mutex .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits __mutex_base\&. .SS "Public Types" .in +1c .ti -1c .RI "\fBtypedef\fP \fB__native_type\fP * \fBnative_handle_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBmutex\fP (const \fBmutex\fP &)=\fBdelete\fP" .br .ti -1c .RI "\fBvoid\fP \fBlock\fP ()" .br .ti -1c .RI "\fBnative_handle_type\fP \fBnative_handle\fP () noexcept" .br .ti -1c .RI "\fBmutex\fP & \fBoperator=\fP (const \fBmutex\fP &)=\fBdelete\fP" .br .ti -1c .RI "bool \fBtry_lock\fP () noexcept" .br .ti -1c .RI "\fBvoid\fP \fBunlock\fP ()" .br .in -1c .SH "Detailed Description" .PP The standard mutex type\&. .PP A simple, non-recursive, non-timed mutex\&. .PP Do not call \fClock()\fP and \fCunlock()\fP directly, use a scoped lock type such as \fCstd::unique_lock\fP, \fCstd::lock_guard\fP, or (since C++17) \fCstd::scoped_lock\fP\&. .PP \fBSince\fP .RS 4 C++11 .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.