Package gaiasky.desktop.concurrent
Class ThreadIndexer
java.lang.Object
gaiasky.desktop.concurrent.ThreadIndexer
- Direct Known Subclasses:
MultiThreadIndexer
Class that returns the thread indices.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
i()
abstract int
idx()
Gets the index of the current thread.static void
initialize(ThreadIndexer inst)
abstract int
nThreads()
Number of threads.
-
Field Details
-
instance
-
-
Constructor Details
-
ThreadIndexer
public ThreadIndexer()
-
-
Method Details
-
initialize
-
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.
-