Share via


ReentrantReadWriteLock.ReentrantReadLock.Unlock Method

Definition

Attempts to release this lock.

[Android.Runtime.Register("unlock", "()V", "GetUnlockHandler")]
public virtual void Unlock ();
[<Android.Runtime.Register("unlock", "()V", "GetUnlockHandler")>]
abstract member Unlock : unit -> unit
override this.Unlock : unit -> unit

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