Class ThreadIndexer

java.lang.Object
gaiasky.desktop.concurrent.ThreadIndexer
Direct Known Subclasses:
MultiThreadIndexer

public abstract class ThreadIndexer
extends java.lang.Object
Class that returns the thread indices.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static ThreadIndexer instance  
  • Constructor Summary

    Constructors
    Constructor Description
    ThreadIndexer()  
  • Method Summary

    Modifier and Type Method Description
    static int i()  
    abstract int idx()
    Gets the index of the current thread.
    static void initialize​(ThreadIndexer inst)  
    abstract int nthreads()
    Number of threads.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ThreadIndexer

      public ThreadIndexer()
  • Method Details

    • initialize

      public static void initialize​(ThreadIndexer inst)
    • i

      public static int i()
    • idx

      public abstract int idx()
      Gets the index of the current thread.
      Returns:
      The index.
    • nthreads

      public abstract int nthreads()
      Number of threads.
      Returns:
      The number of threads.