다음을 통해 공유


StampedLock.ReadLockCount Property

Definition

Queries the number of read locks held for this lock.

public virtual int ReadLockCount { [Android.Runtime.Register("getReadLockCount", "()I", "GetGetReadLockCountHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getReadLockCount", "()I", "GetGetReadLockCountHandler", ApiSince=24)>]
member this.ReadLockCount : int

Property Value

the number of read locks held

Attributes

Remarks

Queries the number of read locks held for this lock. This method is designed for use in monitoring system state, not for synchronization control.

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

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