ReentrantLock.QueueLength Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an estimate of the number of threads waiting to acquire this lock.
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 for this lock
- Attributes
Remarks
Returns an estimate of the number of threads waiting to acquire this lock. 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.ReentrantLock.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.