As you attempt to lock the object, the method first tests the Lock to see if another script already has a lock pending. If it does, then this method stalls and will not return until it can successfully place a lock on the object. That will happen when the previous locking script calls the unlock() method.
See also: | Lock.isValid() |
Prev | Home | Next |
Lock.isValid() | Up | Lock.prototype |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |