Package mapproxy :: Package core :: Module utils :: Class SemLock
[hide private]
[frames] | no frames]

Class SemLock

source code

object --+    
         |    
  FileLock --+
             |
            SemLock

File-lock-based counting semaphore (i.e. this lock can be locked n-times).
Instance Methods [hide private]
 
__init__(self, lock_file, n, timeout=60.0, step=0.01)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_try_lock(self) source code

Inherited from FileLock: __del__, __enter__, __exit__, lock, unlock

Inherited from FileLock (private): _make_lockdir

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, lock_file, n, timeout=60.0, step=0.01)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

_try_lock(self)

source code 
Overrides: FileLock._try_lock