diff options
author | Michael Bien <[email protected]> | 2010-09-18 05:32:20 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-09-18 05:32:20 +0200 |
commit | 9870937703113993072e0bfa1fc9dce0a138278d (patch) | |
tree | c2c054857cc2c513096c586bdf25b31296619b9b /src/com | |
parent | ec3fc434397bac702bc0861ea8f9171c32d959b2 (diff) |
wait(timeout) should return boolean.
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/jogamp/opencl/util/MultiQueueBarrier.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/jogamp/opencl/util/MultiQueueBarrier.java b/src/com/jogamp/opencl/util/MultiQueueBarrier.java index 59398b5e..eb89cb56 100644 --- a/src/com/jogamp/opencl/util/MultiQueueBarrier.java +++ b/src/com/jogamp/opencl/util/MultiQueueBarrier.java @@ -96,10 +96,10 @@ public class MultiQueueBarrier { * @param timeout the maximum time to wait * @param unit the time unit of the {@code timeout} argument */ - public MultiQueueBarrier await(long timeout, TimeUnit unit) throws InterruptedException { - latch.await(timeout, unit); + public boolean await(long timeout, TimeUnit unit) throws InterruptedException { + boolean ret = latch.await(timeout, unit); rebuildBarrierIfBroken(); - return this; + return ret; } /** |