Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: sditerator.origin - Function Up: sditerator - Tool Previous: sditerator.unlock - Function


sditerator.lock - Function



Package dish
Module dish
Tool sditerator


Set the appropriate lock on all associated tables.


Synopsis
lock(nattempts)


Description
This function set table locks on the tables that are associated with this sditerator. Normally this isn't necessary but if you are trying to work directly with the associated tables through a table tool using unlock and lock should make the interaction happen faster since the the auto-locking mechanism won't need to periodically check to see if a lock needs to be set. The nattempts argument is used to indicate how many additional attempts to acquire the locks the tool should make before giving up. Each additional attempt happens after about a 1 second pause. If nattempts is 0, only the initial attempt will be made. If the locks can't be set, the return value will be false (F).



Arguments

nattempts in The number of times to attempt to set the lock.
    Allowed: Integer


Returns
Bool




next up previous contents index
Next: sditerator.origin - Function Up: sditerator - Tool Previous: sditerator.unlock - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01