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

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

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

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

 filename

Properties

 _filedesc = property(_filedesc)

Private Member Functions

def _filedesc
def _open
def _release_all_locks

Private Attributes

 _filedescriptor

Detailed Description

a synchronizer which locks using flock().

Adapted for Python/multithreads from Apache::Session::Lock::File,
http://search.cpan.org/src/CWEST/Apache-Session-1.81/Session/Lock/File.pm

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,
  identifier,
  lock_dir 
)

Member Function Documentation

def b3::lib::beaker::synchronization::FileSynchronizer::_filedesc (   self) [private]
def b3::lib::beaker::synchronization::FileSynchronizer::_open (   self,
  mode 
) [private]
def b3::lib::beaker::synchronization::FileSynchronizer::_release_all_locks (   self) [private]
def b3::lib::beaker::synchronization::FileSynchronizer::do_acquire_read_lock (   self,
  wait 
)
def b3::lib::beaker::synchronization::FileSynchronizer::do_acquire_write_lock (   self,
  wait 
)
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