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 &lock, const char *aFileName, int lineNo)
 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...
 
Locklock
 the lock we are operating on More...
 
const std::string fileName
 where the lock was needed More...
 
const int lineNo
 where the lock was needed More...
 

Detailed Description

Definition at line 41 of file certificate_db.h.

Constructor & Destructor Documentation

Ssl::Locker::Locker ( Lock lock,
const char *  aFileName,
int  lineNo 
)

Definition at line 99 of file certificate_db.cc.

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

Ssl::Locker::~Locker ( )

Definition at line 108 of file certificate_db.cc.

Member Data Documentation

const std::string Ssl::Locker::fileName
private

Definition at line 51 of file certificate_db.h.

const int Ssl::Locker::lineNo
private

Definition at line 52 of file certificate_db.h.

Lock& Ssl::Locker::lock
private

Definition at line 50 of file certificate_db.h.

Referenced by Locker().

bool Ssl::Locker::weLocked
private

Definition at line 49 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