Table of Contents

Class: SHLockFile ./src/peak/running/lockfiles.py

HoneyDanBer/NNTP/shlock(1)-style locking

Two bigs wins to this algorithm:

  • Locks do not survive crashes of either the system or the application by any appreciable period of time.

  • No clean up to do if the system or application crashes.

Loses:

  • In the off chance that another process comes along with the same pid, we can get a false positive for lock validity.

  • Not compatible with NFS or any shared filesystem (due to disjoint PID spaces)

  • Waiting for lock must be implemented by polling

Base Classes   
LockFileBase
Methods   
do_acquire
do_release
  do_acquire 
do_acquire ( self,  waitflag )

  do_release 
do_release ( self )


Table of Contents

This document was automatically generated on Mon Nov 11 01:11:03 2024 by HappyDoc version 2.1