Table of Contents

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

flock(3)-based locks.

Wins:

  • Locks do not survive crashes of either the system or the application.

  • Waiting for a lock is handled by the kernel and doesn't require polling

  • Potentially compatible with NFS or other shared filesystem if you trust their lockd (or equivalent) implemenation. Note that this is a big if!

  • No false positives on stale locks

Loses:

  • Leaves lockfiles around, since unlink would cause a race.

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

  do_release 
do_release ( self )


Table of Contents

This document was automatically generated on Mon Mar 25 01:11:04 2024 by HappyDoc version 2.1