ILock.Unlock Method

Definition

Releases the lock.

[Android.Runtime.Register("unlock", "()V", "GetUnlockHandler:Java.Util.Concurrent.Locks.ILockInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Unlock ();
[<Android.Runtime.Register("unlock", "()V", "GetUnlockHandler:Java.Util.Concurrent.Locks.ILockInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Unlock : unit -> unit
Attributes

Remarks

Releases the lock.

<b>Implementation Considerations</b>

A Lock implementation will usually impose restrictions on which thread can release a lock (typically only the holder of the lock can release it) and may throw an (unchecked) exception if the restriction is violated. Any restrictions and the exception type must be documented by that Lock implementation.

Java documentation for java.util.concurrent.locks.Lock.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