Back to index

courier  0.68.2
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
DotLock Class Reference

#include <dotlock.h>

Inheritance diagram for DotLock:
Inheritance graph
[legend]
Collaboration diagram for DotLock:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DotLock ()
 ~DotLock ()
void Lock (const char *)
void LockMailbox (const char *)
void Unlock ()
int Open (const char *, int, mode_t=0666)
void Close ()

Static Public Member Functions

static void onexit ()
static void onfork ()

Protected Member Functions

void cleanup ()
void forked ()
void name (const char *)
void descriptor (int fd_)
void destroying ()
void constructed ()

Protected Attributes

char * filename
int fd
int do_remove

Private Member Functions

int attemptlock (const char *, const char *)
void Refreshlock ()
void dorefresh ()

Static Private Member Functions

static unsigned GetLockSleep ()
static unsigned GetLockTimeout ()
static unsigned GetLockRefresh ()
static const char * GetLockExt ()

Private Attributes

DotLockRefresh refresh
unsigned refresh_interval

Friends

class DotLockRefresh

Detailed Description

Definition at line 14 of file dotlock.h.


Constructor & Destructor Documentation


Member Function Documentation

int DotLock::attemptlock ( const char *  ,
const char *   
) [private]
void TempFile::cleanup ( ) [protected, virtual, inherited]

Implements ExitTrap.

Reimplemented in DeliverDotLock.

void TempFile::Close ( ) [inherited]
void ExitTrap::constructed ( ) [inline, protected, inherited]

Definition at line 26 of file exittrap.h.

{ callcleanup=1; }
void TempFile::descriptor ( int  fd_) [inline, protected, inherited]

Definition at line 54 of file tempfile.h.

{ fd=fd_; }
void ExitTrap::destroying ( ) [inline, protected, inherited]

Definition at line 25 of file exittrap.h.

{ callcleanup=0; }
void DotLock::dorefresh ( ) [private]
void TempFile::forked ( ) [protected, virtual, inherited]

Implements ExitTrap.

static const char* DotLock::GetLockExt ( ) [static, private]
static unsigned DotLock::GetLockRefresh ( ) [static, private]
static unsigned DotLock::GetLockSleep ( ) [static, private]
static unsigned DotLock::GetLockTimeout ( ) [static, private]
void DotLock::Lock ( const char *  )
void DotLock::LockMailbox ( const char *  )
void TempFile::name ( const char *  ) [protected, inherited]
static void ExitTrap::onexit ( ) [static, inherited]
static void ExitTrap::onfork ( ) [static, inherited]
int TempFile::Open ( const char *  ,
int  ,
mode_t  = 0666 
) [inherited]
void DotLock::Refreshlock ( ) [private]
void DotLock::Unlock ( )

Friends And Related Function Documentation

friend class DotLockRefresh [friend]

Definition at line 32 of file dotlock.h.


Member Data Documentation

int TempFile::do_remove [protected, inherited]

Definition at line 43 of file tempfile.h.

int TempFile::fd [protected, inherited]

Definition at line 41 of file tempfile.h.

char* TempFile::filename [protected, inherited]

Definition at line 40 of file tempfile.h.

Definition at line 18 of file dotlock.h.

unsigned DotLock::refresh_interval [private]

Definition at line 21 of file dotlock.h.


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