Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

LOCK

1984 Version of ANSI Standard

LOCK command

See Lock for formal definition.

  1. Remove all claims on the MUMPS name spae from prior LOCKs.
  2. Null string ("") Right Arrow A.
  3. Replace the n-tuple in A by the n + 1-tuple (A:Result).
  4. Result Right Arrow A.
  5. Do action 1.
    Then attempt to claim the subspace of all names in A.
    This action suspends execution until it succeeds.
  6. Set up a timer of Timeout seconds.
    Do action 1.
    Then attempt to claim the subspace of all names in A at least once, and then repeatedly until the claim succeeds or the timer expires, whichever occurs first.
  7. False Right Arrow Ifswitch ($TEST).
  8. True Right Arrow Ifswitch ($TEST).
Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

This page most recently updated on 16-Nov-2023, 10:06:36.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)