Author: bugman Date: Wed Aug 31 11:02:04 2011 New Revision: 14534 URL: http://svn.gna.org/viewcvs/relax?rev=14534&view=rev Log: The Relax_lock object now has a 'name' argument which will be used in debugging. Modified: 1.3/status.py Modified: 1.3/status.py URL: http://svn.gna.org/viewcvs/relax/1.3/status.py?rev=14534&r1=14533&r2=14534&view=diff ============================================================================== --- 1.3/status.py (original) +++ 1.3/status.py Wed Aug 31 11:02:04 2011 @@ -66,10 +66,10 @@ self.exec_lock = Exec_lock() # The data pipe lock object. - self.pipe_lock = Relax_lock() + self.pipe_lock = Relax_lock(name='pipe_lock') # The molecule, residue, spin structure lock object. - self.spin_lock = Relax_lock() + self.spin_lock = Relax_lock(name='spin_lock') # The exception queue for handling exceptions in threads. self.exception_queue = Queue() @@ -417,9 +417,11 @@ class Relax_lock: """A type of locking object for relax.""" - def __init__(self, debug=False): + def __init__(self, name=None, debug=False): """Set up the lock-like object. + @keyword name: The special name for the lock, used in debugging. + @type name: str @keyword debug: A flag which is True will allow this object to be debugged as the locking mechanism is turned off. @type debug: bool """