Back to index

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

#include <filelock.h>

Inheritance diagram for FileLock:
Inheritance graph
Collaboration diagram for FileLock:
Collaboration graph

List of all members.

Public Member Functions

 FileLock ()
virtual ~FileLock ()
void Lock (const char *)
void UnLock ()

Static Public Member Functions

static void do_filelock (int)
static void onexit ()
static void onfork ()

Protected Member Functions

void destroying ()
void constructed ()

Private Member Functions

void cleanup ()
void forked ()

Private Attributes

int fd

Detailed Description

Definition at line 15 of file filelock.h.

Constructor & Destructor Documentation

virtual FileLock::~FileLock ( ) [virtual]

Member Function Documentation

void FileLock::cleanup ( ) [private, virtual]

Implements ExitTrap.

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

Definition at line 26 of file exittrap.h.

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

Definition at line 25 of file exittrap.h.

{ callcleanup=0; }
static void FileLock::do_filelock ( int  ) [static]
void FileLock::forked ( ) [private, virtual]

Implements ExitTrap.

void FileLock::Lock ( const char *  )
static void ExitTrap::onexit ( ) [static, inherited]
static void ExitTrap::onfork ( ) [static, inherited]
void FileLock::UnLock ( )

Member Data Documentation

int FileLock::fd [private]

Definition at line 20 of file filelock.h.

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