Package com.aparapi.internal.kernel
Interface IKernelBarrier
- All Superinterfaces:
ForkJoinPool.ManagedBlocker
Provides the interface for Aparapi Kernel barriers.
- Author:
- CoreRasurae
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Breaks the barrier.void
Cancels 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.
-