Sdílet prostřednictvím


ReentrantReadWriteLock.QueuedThreads Property

Definition

Returns a collection containing threads that may be waiting to acquire either the read or write lock.

protected virtual System.Collections.Generic.ICollection<Java.Lang.Thread>? QueuedThreads { [Android.Runtime.Register("getQueuedThreads", "()Ljava/util/Collection;", "GetGetQueuedThreadsHandler")] get; }
[<get: Android.Runtime.Register("getQueuedThreads", "()Ljava/util/Collection;", "GetGetQueuedThreadsHandler")>]
member this.QueuedThreads : System.Collections.Generic.ICollection<Java.Lang.Thread>

Property Value

the collection of threads

Attributes

Remarks

Returns a collection containing threads that may be waiting to acquire either the read or write lock. Because the actual set of threads may change dynamically while constructing this result, the returned collection is only a best-effort estimate. The elements of the returned collection are in no particular order. This method is designed to facilitate construction of subclasses that provide more extensive monitoring facilities.

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

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