Interface IKernelBarrier

  • All Superinterfaces:
    java.util.concurrent.ForkJoinPool.ManagedBlocker
    All Known Implementing Classes:
    KernelRunner.FJSafeBarrier

    public interface IKernelBarrier
    extends java.util.concurrent.ForkJoinPool.ManagedBlocker
    Provides the interface for Aparapi Kernel barriers.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void breakBarrier​(java.lang.Throwable e)
      Breaks the barrier.
      void cancelBarrier()
      Cancels the barrier.
      • Methods inherited from interface java.util.concurrent.ForkJoinPool.ManagedBlocker

        block, isReleasable
    • Method Detail

      • cancelBarrier

        void cancelBarrier()
        Cancels the barrier. All threads that may be waiting for the barrier are released and barrier is permanently disabled.
      • breakBarrier

        void breakBarrier​(java.lang.Throwable e)
        Breaks the barrier. All threads that may be waiting for the barrier are released and will throw AparapiBrokenBarrierException.
        Parameters:
        t - the Throwable causing the barrier to break.