Condividi tramite


ReentrantReadWriteLock.IsWriteLockedByCurrentThread Property

Definition

Queries if the write lock is held by the current thread.

public virtual bool IsWriteLockedByCurrentThread { [Android.Runtime.Register("isWriteLockedByCurrentThread", "()Z", "GetIsWriteLockedByCurrentThreadHandler")] get; }
[<get: Android.Runtime.Register("isWriteLockedByCurrentThread", "()Z", "GetIsWriteLockedByCurrentThreadHandler")>]
member this.IsWriteLockedByCurrentThread : bool

Property Value

true if the current thread holds the write lock and false otherwise

Attributes

Remarks

Queries if the write lock is held by the current thread.

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

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