BigBrotherBot v1.9.0
System Development Information for the BigBrotherBot project.

b3::lib::beaker::synchronization::FileSynchronizer Class Reference

Inheritance diagram for b3::lib::beaker::synchronization::FileSynchronizer:

List of all members.

Public Member Functions

def __init__
def do_acquire_read_lock
def do_acquire_write_lock
def do_release_read_lock
def do_release_write_lock

Public Attributes



 _filedesc = property(_filedesc)

Private Member Functions

def _filedesc
def _open
def _release_all_locks

Private Attributes


Detailed Description

a synchronizer which locks using flock().

Adapted for Python/multithreads from Apache::Session::Lock::File,

This module does not unlink temporary files, 
because it interferes with proper locking.  This can cause 
problems on certain systems (Linux) whose file systems (ext2) do not 
perform well with lots of files in one directory.  To prevent this
you should use a script to clean out old files from your lock directory.

Constructor & Destructor Documentation

def b3::lib::beaker::synchronization::FileSynchronizer::__init__ (   self,

Member Function Documentation

def b3::lib::beaker::synchronization::FileSynchronizer::_filedesc (   self) [private]
def b3::lib::beaker::synchronization::FileSynchronizer::_open (   self,
) [private]
def b3::lib::beaker::synchronization::FileSynchronizer::_release_all_locks (   self) [private]
def b3::lib::beaker::synchronization::FileSynchronizer::do_acquire_read_lock (   self,
def b3::lib::beaker::synchronization::FileSynchronizer::do_acquire_write_lock (   self,
def b3::lib::beaker::synchronization::FileSynchronizer::do_release_read_lock (   self)
def b3::lib::beaker::synchronization::FileSynchronizer::do_release_write_lock (   self)

Member Data Documentation

Property Documentation

b3::lib::beaker::synchronization::FileSynchronizer::_filedesc = property(_filedesc) [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties