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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic inti()abstract intidx()Gets the index of the current thread.static voidinitialize(ThreadIndexer inst)abstract intnthreads()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.
-