Share via


ReentrantReadWriteLock.ReadHoldCount Property

Definition

Queries the number of reentrant read holds on this lock by the current thread.

public virtual int ReadHoldCount { [Android.Runtime.Register("getReadHoldCount", "()I", "GetGetReadHoldCountHandler")] get; }
[<get: Android.Runtime.Register("getReadHoldCount", "()I", "GetGetReadHoldCountHandler")>]
member this.ReadHoldCount : int

Property Value

the number of holds on the read lock by the current thread, or zero if the read lock is not held by the current thread

Attributes

Remarks

Queries the number of reentrant read holds on this lock by the current thread. A reader thread has a hold on a lock for each lock action that is not matched by an unlock action.

Added in 1.6.

Java documentation for java.util.concurrent.locks.ReentrantReadWriteLock.getReadHoldCount().

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