Package gaiasky.desktop.concurrent
Class MultiThreadIndexer
java.lang.Object
gaiasky.desktop.concurrent.ThreadIndexer
gaiasky.desktop.concurrent.MultiThreadIndexer
Thread indexer for a multi-thread environment.
-
Field Summary
Fields inherited from class gaiasky.desktop.concurrent.ThreadIndexer
instance
-
Constructor Summary
-
Method Summary
Methods inherited from class gaiasky.desktop.concurrent.ThreadIndexer
i, initialize
-
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.
-