AbstractSessionModelAcquireReadLock Method |
Namespace: Tangosol.Web.Model
public void AcquireReadLock()
Multiple threads can hold read locks at the same time, but no thread will be able to acquire a write lock until all read locks are released.
This method should always be used in combination with a ReleaseReadLock method in the following manner:
model.AcquireReadLock(); try { // access model } finally { model.ReleaseReadLock(); }