Package pulp :: Package client :: Module repolib :: Class ActionLock
[hide private]
[frames] | no frames]

Class ActionLock

source code

lock.Lock --+
            |
           ActionLock

Action lock.

Instance Methods [hide private]
 
__init__(self) source code
    Inherited from lock.Lock
Lock
P(self)
Do semiphore (P) operation.
source code
Lock
V(self)
Do semiphore (V) operation.
source code
 
__del__(self) source code
 
acquire(self, wait=True)
Acquire the lock.
source code
bool
acquired(self)
Test to see if acquired.
source code
 
release(self)
Release the lock.
source code
 
update(self, pid)
Update the process ID.
source code
Class Variables [hide private]
str PATH = '/var/run/subsys/pulp/repolib.pid'
The lock file absolute path.
    Inherited from lock.Lock
Mutex mutex = Mutex()
A thread mutex.
Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: lock.Lock.__init__