Module status :: Class Relax_lock
[hide private]
[frames] | no frames]

Class Relax_lock

source code

A type of locking object for relax.

Instance Methods [hide private]
 
__init__(self, name='unknown', fake_lock=False)
Set up the lock-like object.
source code
 
acquire(self, acquirer='unknown')
Simulate the RLock.acquire() mechanism.
source code
 
locked(self)
Simulate the RLock.locked() mechanism.
source code
 
release(self, acquirer='unknown')
Simulate the RLock.release() mechanism.
source code
Method Details [hide private]

__init__(self, name='unknown', fake_lock=False)
(Constructor)

source code 

Set up the lock-like object.

Parameters:
  • name (str) - The special name for the lock, used in debugging.
  • fake_lock (bool) - A flag which is True will allow this object to be debugged as the locking mechanism is turned off.

acquire(self, acquirer='unknown')

source code 

Simulate the RLock.acquire() mechanism.

Parameters:
  • acquirer (str) - The optional name of the acquirer.

release(self, acquirer='unknown')

source code 

Simulate the RLock.release() mechanism.

Parameters:
  • acquirer (str) - The optional name of the acquirer.