summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jogl/classes/jogamp/opengl/util/av/SyncedRingbuffer.java6
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);