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

    Fields inherited from class gaiasky.desktop.concurrent.ThreadIndexer

    instance
  • Constructor Summary

    Constructors
    Constructor Description
    MultiThreadIndexer()  
  • Method Summary

    Modifier and Type Method Description
    int idx()
    Gets the index of the current thread.
    int nthreads()
    Number of threads.

    Methods inherited from class gaiasky.desktop.concurrent.ThreadIndexer

    i, initialize

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.