--- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > Greg, > > I'll be dumb here. I was not aware of the $increment function. I > just look here: > http://www.jacquardsystems.com/Examples/ > > and don't see it in the list of functions. What am I missing? > > Also, could you modifiy my code so that if a lock was encountered, it > would pause briefly and try again? > > Kevin >
That's because $INCREMENT isn't standard MUMPS. It atomically reads and increments a variable. To try and get a lock and retry if you fail, give the lock a timeout and then check $TEST as in L +^KEVIN(0):1 I '$T do something do work L -^KEVIN(0) === Gregory Woodhouse <[EMAIL PROTECTED]> "All truth passes through three stages: First, it is ridiculed. Second, it is violently opposed. Third, it is accepted as being self-evident." --Arthur Schopenhauer ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members