다음을 통해 공유


AbstractQueuedLongSynchronizer.FirstQueuedThread Property

Definition

Returns the first (longest-waiting) thread in the queue, or null if no threads are currently queued.

public Java.Lang.Thread? FirstQueuedThread { [Android.Runtime.Register("getFirstQueuedThread", "()Ljava/lang/Thread;", "")] get; }
[<get: Android.Runtime.Register("getFirstQueuedThread", "()Ljava/lang/Thread;", "")>]
member this.FirstQueuedThread : Java.Lang.Thread

Property Value

the first (longest-waiting) thread in the queue, or null if no threads are currently queued

Attributes

Remarks

Returns the first (longest-waiting) thread in the queue, or null if no threads are currently queued.

In this implementation, this operation normally returns in constant time, but may iterate upon contention if other threads are concurrently modifying the queue.

Java documentation for java.util.concurrent.locks.AbstractQueuedLongSynchronizer.getFirstQueuedThread().

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