Compartilhar via


ReentrantReadWriteLock.ReentrantWriteLock.IsHeldByCurrentThread Property

Definition

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

public virtual bool IsHeldByCurrentThread { [Android.Runtime.Register("isHeldByCurrentThread", "()Z", "GetIsHeldByCurrentThreadHandler")] get; }
[<get: Android.Runtime.Register("isHeldByCurrentThread", "()Z", "GetIsHeldByCurrentThreadHandler")>]
member this.IsHeldByCurrentThread : bool

Property Value

true if the current thread holds this lock and false otherwise

Attributes

Remarks

Queries if this write lock is held by the current thread. Identical in effect to ReentrantReadWriteLock#isWriteLockedByCurrentThread.

Added in 1.6.

Java documentation for java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock.isHeldByCurrentThread().

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