Freigeben über


AbstractQueuedSynchronizer.QueueLength Property

Definition

Returns an estimate of the number of threads waiting to acquire.

public int QueueLength { [Android.Runtime.Register("getQueueLength", "()I", "")] get; }
[<get: Android.Runtime.Register("getQueueLength", "()I", "")>]
member this.QueueLength : int

Property Value

the estimated number of threads waiting to acquire

Attributes

Remarks

Returns an estimate of the number of threads waiting to acquire. The value is only an estimate because the number of threads may change dynamically while this method traverses internal data structures. This method is designed for use in monitoring system state, not for synchronization control.

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

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