DOMLock
From Virtual World Web Wiki
Manages a lock on a DOM tree. You take a read lock along with others when you want to work with the DOM but ar ok with other users reading / writing themselves. You take a write lock when you need exclusive access to the DOM. This is meant only for serialization when a DOM snapshot must be consistent and come between updates. The lock you hold is actually on the entire DOM root document, as well as a standard monitor lock on the "LockObject".
Remarks [edit]
Properties
- DOMObject LockObject {get; set;}
- The DOMObject that this lock is targeting
- DOMLockType LockType {get; set;}
- The type of the lock
Methods
- void Dispose()
- Disposes this DOMLock and releases the target DOMObject for other waiting lockers
- DOMLock Lock(DOMLockType lockType, DOMObject lockObject)
- Takes a new read lock on the entire DOM (preventing writers, but not other readers) and also locks this specific object for you to work with
- DOMLock ReadLock(DOMObject lockObject)
- Takes a new read lock on the entire DOM (preventing writers, but not other readers) and also locks this specific object for you to work with
- DOMLock WriteLock(DOMObject lockObject)
- Takes a new write lock on the entire DOM (preventing all others form any access) and also locks this specific object for you to work with