maintains an exclusive blocking file-based lock More...
#include <certificate_db.h>

Public Member Functions | |
| Lock (std::string const &filename) | |
| creates an unlocked lock More... | |
| ~Lock () | |
| releases the lock if it is locked More... | |
| void | lock () |
| locks the lock, may block More... | |
| void | unlock () |
| unlocks locked lock or throws More... | |
| bool | locked () const |
| whether our lock is locked More... | |
| const char * | name () const |
Private Attributes | |
| std::string | filename |
| int | fd |
| Linux file descriptor. More... | |
Detailed Description
Definition at line 20 of file certificate_db.h.
Constructor & Destructor Documentation
◆ Lock()
|
explicit |
Definition at line 30 of file certificate_db.cc.
◆ ~Lock()
| Lock::~Lock | ( | ) |
Definition at line 94 of file certificate_db.cc.
Member Function Documentation
◆ lock()
| void Lock::lock | ( | ) |
Definition at line 49 of file certificate_db.cc.
References Here, ToSBuf(), and xopen().
Referenced by Ssl::Locker::Locker().
◆ locked()
| bool Lock::locked | ( | ) | const |
Definition at line 40 of file certificate_db.cc.
Referenced by Ssl::Locker::Locker().
◆ name()
|
inline |
Definition at line 28 of file certificate_db.h.
References filename.
◆ unlock()
| void Lock::unlock | ( | ) |
Definition at line 71 of file certificate_db.cc.
Member Data Documentation
◆ fd
|
private |
Definition at line 34 of file certificate_db.h.
◆ filename
|
private |
Definition at line 30 of file certificate_db.h.
Referenced by name().
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
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
