.TH "sc::ThreadLockHolder" 3 "Sun Oct 4 2020" "Version 2.3.1" "MPQC" \" -*- nroff -*- .ad l .nh .SH NAME sc::ThreadLockHolder \- Acquire a lock on creation and release it on destruction\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBThreadLockHolder\fP (const \fBRef\fP< \fBThreadLock\fP > &l)" .br .RI "Acquires the lock\&. " .ti -1c .RI "void \fBunlock\fP ()" .br .RI "Release the lock before the DTOR is called, if it is still held\&. " .ti -1c .RI "void \fBlock\fP ()" .br .RI "Acquire the lock once more\&. " .ti -1c .RI "\fB~ThreadLockHolder\fP ()" .br .RI "Releases the lock if it is still held\&. " .in -1c .SH "Detailed Description" .PP Acquire a lock on creation and release it on destruction\&. This should be used to lock and unlock \fBThreadLock\fP objects to provide exception safety\&. .SH "Author" .PP Generated automatically by Doxygen for MPQC from the source code\&.