Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | misc | |
Tool | os |
It returns a vector of 3 integer elements.
The first element tells if the table is used or locked.
0 = not used
1 = used, but not locked
2 = read-locked
3 = write-locked
The second element gives the pid of the process using or locking the table.
The third element is 1 if the lock is permanent (otherwise 0).
Note that multiple processes can use a table or hold a read-lock. This function gives the pid of only one of those processes.
res := dos.lockinfo ('~/aips++/test/hol.ms'); if (res[1] != 0) { print (paste ('The table is used (and maybe locked) by process', res[2])); }
tablename | in | table name | |
Allowed: | string |