Class MultiThreadIndexer


  • public class MultiThreadIndexer
    extends ThreadIndexer
    Thread indexer for a multithread environment.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int idx()
      Gets the index of the current thread
      int nthreads()
      Number of threads
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiThreadIndexer

        public MultiThreadIndexer()
    • Method Detail

      • idx

        public int idx()
        Description copied from class: ThreadIndexer
        Gets the index of the current thread
        Specified by:
        idx in class ThreadIndexer
        Returns:
        The index
      • nthreads

        public int nthreads()
        Description copied from class: ThreadIndexer
        Number of threads
        Specified by:
        nthreads in class ThreadIndexer
        Returns:
        The number of threads