◆ awaitUninterruptibly() [1/2]
static void org.webrtc.ThreadUtils.awaitUninterruptibly |
( |
final CountDownLatch |
latch | ) |
|
|
inlinestatic |
◆ awaitUninterruptibly() [2/2]
static boolean org.webrtc.ThreadUtils.awaitUninterruptibly |
( |
CountDownLatch |
barrier, |
|
|
long |
timeoutMs |
|
) |
| |
|
inlinestatic |
◆ checkIsOnMainThread()
static void org.webrtc.ThreadUtils.checkIsOnMainThread |
( |
| ) |
|
|
inlinestatic |
Throws exception if called from other than main thread.
◆ executeUninterruptibly()
Utility method to make sure a blocking operation is executed to completion without getting interrupted. This should be used in cases where the operation is waiting for some critical work, e.g. cleanup, that must complete before returning. If the thread is interrupted during the blocking operation, this function will re-run the operation until completion, and only then re-interrupt the thread.
◆ invokeAtFrontUninterruptibly() [1/2]
static <V> V org.webrtc.ThreadUtils.invokeAtFrontUninterruptibly |
( |
final Handler |
handler, |
|
|
final Callable< V > |
callable |
|
) |
| |
|
inlinestatic |
Post |callable| to |handler| and wait for the result.
◆ invokeAtFrontUninterruptibly() [2/2]
static void org.webrtc.ThreadUtils.invokeAtFrontUninterruptibly |
( |
final Handler |
handler, |
|
|
final Runnable |
runner |
|
) |
| |
|
inlinestatic |
Post |runner| to |handler|, at the front, and wait for completion.
◆ joinUninterruptibly() [1/2]
static boolean org.webrtc.ThreadUtils.joinUninterruptibly |
( |
final Thread |
thread, |
|
|
long |
timeoutMs |
|
) |
| |
|
inlinestatic |
◆ joinUninterruptibly() [2/2]
static void org.webrtc.ThreadUtils.joinUninterruptibly |
( |
final Thread |
thread | ) |
|
|
inlinestatic |
◆ waitUninterruptibly()
static void org.webrtc.ThreadUtils.waitUninterruptibly |
( |
final Object |
object | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file:
- Source/ThirdParty/libwebrtc/Source/webrtc/base/java/src/org/webrtc/ThreadUtils.java