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 ThreadIndexerinstance -
Constructor Summary
Constructors Constructor Description ThreadIndexer() -
Method Summary
Modifier and Type Method Description static inti()abstract intidx()Gets the index of the current threadstatic voidinitialize(ThreadIndexer inst)abstract intnthreads()Number of threadsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-