ReentrantReadWriteLock.ReentrantReadLock.Unlock Method

Definition

Attempts to release this lock.

C#
[Android.Runtime.Register("unlock", "()V", "GetUnlockHandler")]
public virtual void Unlock();

Implements

Attributes

Remarks

Attempts to release this lock.

If the number of readers is now zero then the lock is made available for write lock attempts. If the current thread does not hold this lock then IllegalMonitorStateException is thrown.

Java documentation for java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock.unlock().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Proizvod Verzije
.NET for Android .NET for Android API 34, .NET for Android API 35