SynchronizedDictionaryAcquireReadLock Method |
Namespace: Tangosol.Util.Collections
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:
dict.AcquireReadLock(); try { // access dictionary } finally { dict.ReleaseReadLock(); }