diff options
author | Sven Gothel <[email protected]> | 2013-08-14 06:33:59 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-08-14 06:33:59 +0200 |
commit | f53b7713e5eb58a86faf0db06db8be35cfa413d9 (patch) | |
tree | e30984d8f5641c0f8aa98a93551327d42aa4b1a4 /src | |
parent | e05e3a4ec36708b35eea9a2db67f6007b68564cf (diff) |
SyncedRingbuffer: peek() don't throw an exception
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/util/av/SyncedRingbuffer.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/SyncedRingbuffer.java b/src/jogl/classes/jogamp/opengl/util/av/SyncedRingbuffer.java index ea67387a0..9e1ec48f1 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/SyncedRingbuffer.java +++ b/src/jogl/classes/jogamp/opengl/util/av/SyncedRingbuffer.java @@ -176,8 +176,10 @@ public class SyncedRingbuffer<T> { return getImpl(clearRef, true, false); } - public final T peek() throws InterruptedException { - return getImpl(false, false, true); + public final T peek() { + try { + return getImpl(false, false, true); + } catch (InterruptedException ie) { throw new RuntimeException(ie); } } public final T peekBlocking() throws InterruptedException { return getImpl(false, true, true); |