Index: webrtc/base/java/src/org/webrtc/ThreadUtils.java |
diff --git a/webrtc/base/java/src/org/webrtc/ThreadUtils.java b/webrtc/base/java/src/org/webrtc/ThreadUtils.java |
index 95d41ba56337d646877781bfc19edb3b6f96e298..cf814b0f536bccfda6232bf963f385dc4a6af05e 100644 |
--- a/webrtc/base/java/src/org/webrtc/ThreadUtils.java |
+++ b/webrtc/base/java/src/org/webrtc/ThreadUtils.java |
@@ -136,6 +136,15 @@ public class ThreadUtils { |
return result; |
} |
+ public static void waitUninterruptibly(final Object object) { |
+ executeUninterruptibly(new BlockingOperation() { |
+ @Override |
+ public void run() throws InterruptedException { |
+ object.wait(); |
+ } |
+ }); |
+ } |
+ |
/** |
* Post |callable| to |handler| and wait for the result. |
*/ |