|NRAO Home > CASA > CASA Toolkit Reference Manual||
1.1.1 Acquire a lock on the image
This function can be used to acquire a Read or a Read/Write lock on the image file. It is not of general user interest.
In general locking is handled automatically, with a built in lock release cycle. However, this function can be useful in scripts when a file is being shared between more than one process. See also functions unlock and haslock.
Acquire a read/write (T) or a readonly (F) lock
Number of attempts, > 0. Default is unlimiited.
print "\t----\t lock Ex 1 \t----"
This acquires a read/write lock on the file. Then we unlock it
and acquire a readonly lock.
More information about CASA may be found at the CASA web page
Copyright © 2016 Associated Universities Inc., Washington, D.C.