Package gaiasky.desktop.concurrent
Class ThreadIndexer
- java.lang.Object
-
- gaiasky.desktop.concurrent.ThreadIndexer
-
- Direct Known Subclasses:
MultiThreadIndexer
public abstract class ThreadIndexer extends java.lang.ObjectClass that returns the thread indices.
-
-
Field Summary
Fields Modifier and Type Field Description static ThreadIndexerinstance
-
Constructor Summary
Constructors Constructor Description ThreadIndexer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static inti()abstract intidx()Gets the index of the current threadstatic voidinitialize(ThreadIndexer inst)abstract intnthreads()Number of threads
-
-
-
Field Detail
-
instance
public static ThreadIndexer instance
-
-
Method Detail
-
initialize
public static void initialize(ThreadIndexer inst)
-
i
public static int i()
-
idx
public abstract int idx()
Gets the index of the current thread- Returns:
- The index
-
nthreads
public abstract int nthreads()
Number of threads- Returns:
- The number of threads
-
-