August 1999
Intermediate to advanced
1488 pages
72h 53m
English
new Lock()
A Lock object is used when you enter a section of code that can only be accessed from a single user at a time. Not implementing an instance of this object when needed can cause you to run out of system resources and will generate a runtime error. This object has only one property, which is the prototype property.
This property can be used to create new methods and properties for the Lock object. Table 8.18 contains the methods accessible from this object.
| Method | Description |
|---|---|
| isValid() | Verifies the construction of the Lock object instance |
| lock() | Locks the code |
| unlock() | Unlocks the code |
Listing 8.93 shows how you would create a new Lock object instance. See the ...
Read now
Unlock full access