an exception-safe way to obtain and release a lock More...
#include <certificate_db.h>
Public Member Functions | |
Locker (Lock &, const SourceLocation &) | |
locks the lock if the lock was unlocked More... | |
~Locker () | |
unlocks the lock if it was locked by us More... | |
Private Attributes | |
bool | weLocked |
whether we locked the lock More... | |
Lock & | lock |
the lock we are operating on More... | |
const SourceLocation | caller |
where the lock was needed (currently not reported anywhere) More... | |
Detailed Description
Definition at line 39 of file certificate_db.h.
Constructor & Destructor Documentation
◆ Locker()
Ssl::Locker::Locker | ( | Lock & | aLock, |
const SourceLocation & | aCaller | ||
) |
Definition at line 99 of file certificate_db.cc.
References Ssl::Lock::lock(), lock, Ssl::Lock::locked(), and weLocked.
◆ ~Locker()
Ssl::Locker::~Locker | ( | ) |
Definition at line 110 of file certificate_db.cc.
Member Data Documentation
◆ caller
|
private |
Definition at line 51 of file certificate_db.h.
◆ lock
|
private |
Definition at line 48 of file certificate_db.h.
Referenced by Locker().
◆ weLocked
|
private |
Definition at line 47 of file certificate_db.h.
Referenced by Locker().
The documentation for this class was generated from the following files:
- src/security/cert_generators/file/certificate_db.h
- src/security/cert_generators/file/certificate_db.cc