Package com.aparapi.internal.kernel
Interface IKernelBarrier
- All Superinterfaces:
ForkJoinPool.ManagedBlocker
- All Known Implementing Classes:
KernelRunner.FJSafeBarrier
Provides the interface for Aparapi Kernel barriers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidBreaks the barrier.voidCancels the barrier.Methods inherited from interface java.util.concurrent.ForkJoinPool.ManagedBlocker
block, isReleasable
-
Method Details
-
cancelBarrier
void cancelBarrier()Cancels the barrier. All threads that may be waiting for the barrier are released and barrier is permanently disabled. -
breakBarrier
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.
-