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


next up previous contents index
Next: table.unlock - Function Up: table - Tool Previous: table.endianformat - Function


table.lock - Function



Package utility
Module table
Tool table


acquire a lock on the table


Synopsis
lock(write, nattempts)


Description
Try to acquire a read or write lock on the table. Nothing will be done if the table is already correctly locked by this process. It is only needed when user locking is used. When the lock is acquired, the internal caches will be synchronized with the (possible changed) contents of the table.
It is possible to specify the number of attempts to do (1 per second) in case the table is locked by another process. The default 0 is trying indefinitely.



Arguments

write in Write lock? (F=read lock)
    Allowed: Bool
    Default: T
nattempts in Nr of attempts
    Allowed: Int
    Default: 0


Returns
Bool




next up previous contents index
Next: table.unlock - Function Up: table - Tool Previous: table.endianformat - 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-10-15