Squid Web Cache master
Loading...
Searching...
No Matches
Ssl::Locker Class Reference

an exception-safe way to obtain and release a lock More...

#include <certificate_db.h>

Collaboration diagram for Ssl::Locker:
[legend]

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
 
Locklock
 the lock we are operating on
 
const SourceLocation caller
 where the lock was needed (currently not reported anywhere)
 

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 100 of file certificate_db.cc.

References Ssl::Lock::lock(), lock, Ssl::Lock::locked(), and weLocked.

◆ ~Locker()

Ssl::Locker::~Locker ( )

Definition at line 111 of file certificate_db.cc.

Member Data Documentation

◆ caller

const SourceLocation Ssl::Locker::caller
private

Definition at line 51 of file certificate_db.h.

◆ lock

Lock& Ssl::Locker::lock
private

Definition at line 48 of file certificate_db.h.

Referenced by Locker().

◆ weLocked

bool Ssl::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: