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

#include <certificate_db.h>

Collaboration diagram for Ssl::Locker:

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

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:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors