ReentrantReadWriteLock.WriteHoldCount Property

Definition

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

public virtual int WriteHoldCount { [Android.Runtime.Register("getWriteHoldCount", "()I", "GetGetWriteHoldCountHandler")] get; }
[<get: Android.Runtime.Register("getWriteHoldCount", "()I", "GetGetWriteHoldCountHandler")>]
member this.WriteHoldCount : int

Property Value

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

Attributes

Remarks

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

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

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