Share via


AbstractQueuedSynchronizer.HasContended Property

Definition

Queries whether any threads have ever contended to acquire this synchronizer; that is, if an acquire method has ever blocked.

public bool HasContended { [Android.Runtime.Register("hasContended", "()Z", "")] get; }
[<get: Android.Runtime.Register("hasContended", "()Z", "")>]
member this.HasContended : bool

Property Value

true if there has ever been contention

Attributes

Remarks

Queries whether any threads have ever contended to acquire this synchronizer; that is, if an acquire method has ever blocked.

In this implementation, this operation returns in constant time.

Java documentation for java.util.concurrent.locks.AbstractQueuedSynchronizer.hasContended().

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