sc::ThreadLockHolder(3) Library Functions Manual sc::ThreadLockHolder(3) NAME sc::ThreadLockHolder - Acquire a lock on creation and release it on de- struction. SYNOPSIS #include <thread.h> Public Member Functions ThreadLockHolder (const Ref< ThreadLock > &l) Acquires the lock. void unlock () Release the lock before the DTOR is called, if it is still held. void lock () Acquire the lock once more. ~ThreadLockHolder () Releases the lock if it is still held. Detailed Description Acquire a lock on creation and release it on destruction. This should be used to lock and unlock ThreadLock objects to provide excep- tion safety. Constructor & Destructor Documentation sc::ThreadLockHolder::~ThreadLockHolder () [inline] Releases the lock if it is still held. References unlock(). Member Function Documentation void sc::ThreadLockHolder::unlock () [inline] Release the lock before the DTOR is called, if it is still held. Referenced by ~ThreadLockHolder(). Author Generated automatically by Doxygen for MPQC from the source code. MPQC Version 2.3.1 sc::ThreadLockHolder(3)
NAME | SYNOPSIS | Detailed Description | Constructor & Destructor Documentation | Member Function Documentation | Author
Want to link to this manual page? Use this URL:
<https://man.FreeBSD.org/cgi/man.cgi?query=sc_ThreadLockHolder&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>