Package gaiasky.desktop.concurrent
Class MultiThreadIndexer
java.lang.Object
gaiasky.desktop.concurrent.ThreadIndexer
gaiasky.desktop.concurrent.MultiThreadIndexer
public class MultiThreadIndexer extends ThreadIndexer
Thread indexer for a multi-thread environment.
-
Field Summary
Fields inherited from class gaiasky.desktop.concurrent.ThreadIndexer
instance
-
Constructor Summary
Constructors Constructor Description MultiThreadIndexer()
-
Method Summary
Methods inherited from class gaiasky.desktop.concurrent.ThreadIndexer
i, initialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MultiThreadIndexer
public MultiThreadIndexer()
-
-
Method Details
-
idx
public int idx()Description copied from class:ThreadIndexer
Gets the index of the current thread.- Specified by:
idx
in classThreadIndexer
- Returns:
- The index.
-
nthreads
public int nthreads()Description copied from class:ThreadIndexer
Number of threads.- Specified by:
nthreads
in classThreadIndexer
- Returns:
- The number of threads.
-