Compartilhar via


ForkJoinWorkerThread.PoolIndex Property

Definition

Returns the unique index number of this thread in its pool.

public virtual int PoolIndex { [Android.Runtime.Register("getPoolIndex", "()I", "GetGetPoolIndexHandler")] get; }
[<get: Android.Runtime.Register("getPoolIndex", "()I", "GetGetPoolIndexHandler")>]
member this.PoolIndex : int

Property Value

the index number

Attributes

Remarks

Returns the unique index number of this thread in its pool. The returned value ranges from zero to the maximum number of threads (minus one) that may exist in the pool, and does not change during the lifetime of the thread. This method may be useful for applications that track status or collect results per-worker-thread rather than per-task.

Java documentation for java.util.concurrent.ForkJoinWorkerThread.getPoolIndex().

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