Package com.aparapi.internal.kernel
Interface IKernelBarrier
-
- All Superinterfaces:
java.util.concurrent.ForkJoinPool.ManagedBlocker
- All Known Implementing Classes:
KernelRunner.FJSafeBarrier
public interface IKernelBarrier extends java.util.concurrent.ForkJoinPool.ManagedBlockerProvides the interface for Aparapi Kernel barriers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbreakBarrier(java.lang.Throwable e)Breaks the barrier.voidcancelBarrier()Cancels the barrier.
-
-
-
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 throwAparapiBrokenBarrierException.- Parameters:
t- the Throwable causing the barrier to break.
-
-