Interface GWorkQueue<T>

Type Parameters:
T - Work item type.
All Known Implementing Classes:
GParallelWorkQueueTask, GSequentialWorkQueueTask, GWorkQueueTask

public interface GWorkQueue<T>
A work queue system. Very low contention queueing of work. Options to process work sequentially or in parallel. Each work item processing happens on its own thread, giving the implementor freedom to do heavy lifting code directly on the processor function without devising other mechanisms to free the thread fast.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    GWorkQueue builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addWork(T item)
    Adds work to the work queue.
  • Method Details

    • addWork

      void addWork(T item)
      Adds work to the work queue.
      Parameters:
      item - Work item to add.