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.
  • 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 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.