Package gaiasky.desktop.concurrent
Class ThreadIndexer
- java.lang.Object
-
- gaiasky.desktop.concurrent.ThreadIndexer
-
- Direct Known Subclasses:
MultiThreadIndexer
public abstract class ThreadIndexer extends java.lang.Object
Class that returns the thread indices.
-
-
Field Summary
Fields Modifier and Type Field Description static ThreadIndexer
instance
-
Constructor Summary
Constructors Constructor Description ThreadIndexer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static int
i()
abstract int
idx()
Gets the index of the current threadstatic void
initialize(ThreadIndexer inst)
abstract int
nthreads()
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
-
-