12c (12.2.1.4.0)
E90869-02
Namespace: Tangosol.Web.Model
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)
Syntax
C# |
---|
public void AcquireWriteLock() |
Remarks
Only a single thread can hold the write lock at any given time, and no other threads will be able to acquire either a read lock or a write lock until the write lock is released.
This method should always be used in combination with a
ReleaseWriteLock()()()() method in the following manner:
model.AcquireWriteLock();
try
{
// access model
}
finally
{
model.ReleaseWriteLock();
}