|
Squid Web Cache master
|
maintains an exclusive blocking file-based lock More...
#include <certificate_db.h>
Public Member Functions | |
| Lock (std::string const &filename) | |
| creates an unlocked lock | |
| ~Lock () | |
| releases the lock if it is locked | |
| void | lock () |
| locks the lock, may block | |
| void | unlock () |
| unlocks locked lock or throws | |
| bool | locked () const |
| whether our lock is locked | |
| const char * | name () const |
Private Attributes | |
| std::string | filename |
| int | fd |
| Linux file descriptor. | |
Definition at line 20 of file certificate_db.h.
|
explicit |
Definition at line 30 of file certificate_db.cc.
| Lock::~Lock | ( | ) |
Definition at line 94 of file certificate_db.cc.
| void Lock::lock | ( | ) |
Definition at line 49 of file certificate_db.cc.
References Here, ToSBuf(), and xopen().
Referenced by Ssl::Locker::Locker().
| bool Lock::locked | ( | ) | const |
Definition at line 40 of file certificate_db.cc.
Referenced by Ssl::Locker::Locker().
|
inline |
Definition at line 28 of file certificate_db.h.
References filename.
| void Lock::unlock | ( | ) |
Definition at line 71 of file certificate_db.cc.
|
private |
Definition at line 34 of file certificate_db.h.
|
private |
Definition at line 30 of file certificate_db.h.
Referenced by name().