Share via


ReentrantReadWriteLock.IsWriteLocked Property

Definition

Queries if the write lock is held by any thread.

public virtual bool IsWriteLocked { [Android.Runtime.Register("isWriteLocked", "()Z", "GetIsWriteLockedHandler")] get; }
[<get: Android.Runtime.Register("isWriteLocked", "()Z", "GetIsWriteLockedHandler")>]
member this.IsWriteLocked : bool

Property Value

true if any thread holds the write lock and false otherwise

Attributes

Remarks

Queries if the write lock is held by any thread. This method is designed for use in monitoring system state, not for synchronization control.

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

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