Sdílet prostřednictvím


StampedLock.ReadLock Method

Definition

Non-exclusively acquires the lock, blocking if necessary until available.

[Android.Runtime.Register("readLock", "()J", "GetReadLockHandler", ApiSince=24)]
public virtual long ReadLock ();
[<Android.Runtime.Register("readLock", "()J", "GetReadLockHandler", ApiSince=24)>]
abstract member ReadLock : unit -> int64
override this.ReadLock : unit -> int64

Returns

a read stamp that can be used to unlock or convert mode

Attributes

Remarks

Non-exclusively acquires the lock, blocking if necessary until available.

Java documentation for java.util.concurrent.locks.StampedLock.readLock().

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