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 multithread environment.
-
-
Field Summary
-
Fields inherited from class gaiasky.desktop.concurrent.ThreadIndexer
instance
-
-
Constructor Summary
Constructors Constructor Description MultiThreadIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intidx()Gets the index of the current threadintnthreads()Number of threads-
Methods inherited from class gaiasky.desktop.concurrent.ThreadIndexer
i, initialize
-
-
-
-
Method Detail
-
idx
public int idx()
Description copied from class:ThreadIndexerGets the index of the current thread- Specified by:
idxin classThreadIndexer- Returns:
- The index
-
nthreads
public int nthreads()
Description copied from class:ThreadIndexerNumber of threads- Specified by:
nthreadsin classThreadIndexer- Returns:
- The number of threads
-
-