Sdílet prostřednictvím


StampedLock.Unlock(Int64) Method

Definition

If the lock state matches the given stamp, releases the corresponding mode of the lock.

[Android.Runtime.Register("unlock", "(J)V", "GetUnlock_JHandler", ApiSince=24)]
public virtual void Unlock (long stamp);
[<Android.Runtime.Register("unlock", "(J)V", "GetUnlock_JHandler", ApiSince=24)>]
abstract member Unlock : int64 -> unit
override this.Unlock : int64 -> unit

Parameters

stamp
Int64

a stamp returned by a lock operation

Attributes

Remarks

If the lock state matches the given stamp, releases the corresponding mode of the lock.

Java documentation for java.util.concurrent.locks.StampedLock.unlock(long).

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