Server-side object | |
Implemented in | Netscape Server 3.0 |
Lock
constructor:Lock();
Failure to construct a new Lock
object indicates an internal JavaScript error, such as out of memory.
| Obtains the lock. |
|
Verifies that this Lock object was properly constructed.
|
| Releases the lock. |
project.lock
, project.unlock
, server.lock
, server.unlock
Method of |
Lock
|
Implemented in | Netscape Server 3.0 |
lock(timeout)
Note that this mechanism requires voluntary compliance by asking for the lock in the first place.
Lock.unlock
, Lock.isValid
, project.lock
, server.lock
Lock
object was properly constructed.
Method of |
Lock
|
Implemented in | Netscape Server 3.0 |
isValid()
Lock
object would not be properly constructed. This happens only if the runtime engine runs out of system resources while creating the object.Lock
object and verifies that nothing went wrong creating it:// construct a new Lock and save in project
project.ordersLock = new Lock();
if (! project.ordersLock.isValid()) {
// Unable to create a Lock. Redirect to error page
...
}
Lock.lock
, Lock.unlock
Method of |
Lock
|
Implemented in | Netscape Server 3.0 |
unlock()
Lock.lock
, Lock.isValid
, project.unlock
, server.unlock
Last Updated: 10/31/97 12:33:29