maintains an exclusive blocking file-based lock More...

#include <certificate_db.h>

Collaboration diagram for Ssl::Lock:

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 22 of file certificate_db.h.

Constructor & Destructor Documentation

Lock::Lock ( std::string const &  filename)
explicit

Definition at line 29 of file certificate_db.cc.

Lock::~Lock ( )

Definition at line 93 of file certificate_db.cc.

Member Function Documentation

void Lock::lock ( )

Definition at line 48 of file certificate_db.cc.

References NULL.

Referenced by Ssl::Locker::Locker().

bool Lock::locked ( ) const

Definition at line 39 of file certificate_db.cc.

Referenced by Ssl::Locker::Locker().

const char* Ssl::Lock::name ( ) const
inline

Definition at line 30 of file certificate_db.h.

void Lock::unlock ( )

Definition at line 70 of file certificate_db.cc.

Member Data Documentation

int Ssl::Lock::fd
private

Definition at line 36 of file certificate_db.h.

std::string Ssl::Lock::filename
private

Definition at line 32 of file certificate_db.h.


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors