|
Squid Web Cache master
|
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 | |
| ~Locker () | |
| unlocks the lock if it was locked by us | |
Private Attributes | |
| bool | weLocked |
| whether we locked the lock | |
| Lock & | lock |
| the lock we are operating on | |
| const SourceLocation | caller |
| where the lock was needed (currently not reported anywhere) | |
Definition at line 39 of file certificate_db.h.
| Ssl::Locker::Locker | ( | Lock & | aLock, |
| const SourceLocation & | aCaller | ||
| ) |
Definition at line 100 of file certificate_db.cc.
References Ssl::Lock::lock(), lock, Ssl::Lock::locked(), and weLocked.
| Ssl::Locker::~Locker | ( | ) |
Definition at line 111 of file certificate_db.cc.
|
private |
Definition at line 51 of file certificate_db.h.
|
private |
Definition at line 48 of file certificate_db.h.
Referenced by Locker().
|
private |
Definition at line 47 of file certificate_db.h.
Referenced by Locker().