From f53b7713e5eb58a86faf0db06db8be35cfa413d9 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 14 Aug 2013 06:33:59 +0200 Subject: SyncedRingbuffer: peek() don't throw an exception --- src/jogl/classes/jogamp/opengl/util/av/SyncedRingbuffer.java | 6 ++++-- 1 file 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 { 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); -- cgit v1.2.3