Java.Util.Concurrent.Locks.ReentrantLock.Unlock Method
Attempts to release this lock.

Syntax

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

Exceptions

TypeReason
Java.Lang.IllegalMonitorStateExceptionif the current thread does not hold this lock

Remarks

Attempts to release this lock.

If the current thread is the holder of this lock then the hold count is decremented. If the hold count is now zero then the lock is released. If the current thread is not the holder of this lock then Java.Lang.IllegalMonitorStateException is thrown.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent.Locks
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1