Class MultiThreadIndexer
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.desktop.concurrent.ThreadIndexer
-
- gaia.cu9.ari.gaiaorbit.desktop.concurrent.MultiThreadIndexer
-
public class MultiThreadIndexer extends ThreadIndexer
Thread indexer for a multithread environment.
-
-
Field Summary
-
Fields inherited from class gaia.cu9.ari.gaiaorbit.desktop.concurrent.ThreadIndexer
instance
-
-
Constructor Summary
Constructors Constructor Description MultiThreadIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
idx()
Gets the index of the current threadint
nthreads()
Number of threads-
Methods inherited from class gaia.cu9.ari.gaiaorbit.desktop.concurrent.ThreadIndexer
i, initialize
-
-
-
-
Method Detail
-
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
-
-