nraonrao
 
NRAO Home > CASA > CasaRef
image.unlock - Function

1.1.1 Release any lock on the image
Description

This function releases any lock set on the image file (and also flushes any outstanding I/O to disk). It is not of general user interest. It can be useful in scripts when a file is being shared between more than one process. See also functions lock and haslock.

Arguments





Returns
bool

Example

"""  
#  
print "\t----\t unlock Ex 1 \t----"  
ia.fromarray(’xx’, ia.makearray(0,[10,20]), overwrite=true)  
ia.unlock()  
ia.close()  
#  
"""

This releases the write lock on the image file. Now some other process can gain immediate access to the image file.

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search

Updated daily during alpha development.