Increments the lock count for a MUMPS global. Note that MUMPS locks are advisory, meaning that MUMPS will not enforce locking automatically. It is the responsibility of your application code to check for and honor any outstanding locks before setting a MUMPS global.
Arguments
Argument | Data Type | Required | Default | Description |
---|---|---|---|---|
globalName | string | Yes | - | The name of the global to examine |
subscripts | array | Yes | - | An array of subscripts |
timeout | numeric | No | 0 | Number of seconds after which the lock attempt will fail |
Return Value
mumps.lock() returns true if the lock was successfully acquired.
0 Comments