CLCommandQueues.
This Barrier can be reused after it has been broken.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private CountDownLatch | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public | MultiQueueBarrier(final CLCommandQueue... allowedQueues)
Creates a new MultiQueueBarrier for the given queues. |
| Modifier and Type | Method and Description |
|---|---|
| public MultiQueueBarrier | |
| public boolean | |
| private void | |
| public long | getCount()
Returns the current number of events which must occure before this barrier unblocks the waiting threads. |
| private void | |
| public void | |
| public MultiQueueBarrier | waitFor(final CLCommandQueue queue)
Blocks the current Thread until all commands on the |
| public MultiQueueBarrier | waitFor(final CLCommandQueue queue, final CLEventList events)
Blocks the current Thread until the given events on the |
| count | back to summary |
|---|---|
| private final int count | |
| latch | back to summary |
|---|---|
| private CountDownLatch latch | |
| queues | back to summary |
|---|---|
| private final Set<CLCommandQueue> queues | |
| MultiQueueBarrier | back to summary |
|---|---|
| public MultiQueueBarrier(final int queueCount) Creates a new MultiQueueBarrier with the given queueCount.
It is recommented to use | |
| MultiQueueBarrier | back to summary |
|---|---|
| public MultiQueueBarrier(final CLCommandQueue... allowedQueues) Creates a new MultiQueueBarrier for the given queues. | |
| await | back to summary |
|---|---|
| public MultiQueueBarrier await() throws InterruptedException Blocks until all Threads which called | |
| await | back to summary |
|---|---|
| public boolean await(final long timeout, final TimeUnit unit) throws InterruptedException | |
| checkQueue | back to summary |
|---|---|
| private void checkQueue(final CLCommandQueue queue) throws IllegalArgumentException | |
| getCount | back to summary |
|---|---|
| public long getCount() Returns the current number of events which must occure before this barrier unblocks the waiting threads. This method is typically used for debugging and testing purposes. | |
| rebuildBarrierIfBroken | back to summary |
|---|---|
| private void rebuildBarrierIfBroken() | |
| resetBarrier | back to summary |
|---|---|
| public void resetBarrier() Resets this barrier and unblocks all waiting threads. | |
| waitFor | back to summary |
|---|---|
| public MultiQueueBarrier waitFor(final CLCommandQueue queue) Blocks the current Thread until all commands on the | |
| waitFor | back to summary |
|---|---|
| public MultiQueueBarrier waitFor(final CLCommandQueue queue, final CLEventList events) Blocks the current Thread until the given events on the | |