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

Class Exec_lock

source code

A type of locking object for locking execution of relax.

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

__init__(self, fake_lock=False)
(Constructor)

source code 

Set up the lock-like object.

Parameters:
  • fake_lock (bool) - A flag which is True will allow this object to be debugged as the locking mechanism is turned off.

acquire(self, name, mode='script')

source code 

Simulate the Lock.acquire() mechanism.

Parameters:
  • name (str) - The name of the locking code.
  • mode (str) - The mode of the code trying to obtain the lock. This can be one of 'script' for the scripting interface or 'auto-analysis' for the auto-analyses.