Home
last modified time | relevance | path

Searched refs:SemaphoreResource (Results 1 – 1 of 1) sorted by relevance

/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/
DLockScope.java101 try (SemaphoreResource semaphoreResource = SemaphoreResource.acquire(semaphore)) { in threadLock()
117 try (SemaphoreResource semaphoreResource = SemaphoreResource.tryAcquire(semaphore)) { in tryThreadLock()
259 private static class SemaphoreResource implements Closeable { class in LockScope
262 static SemaphoreResource tryAcquire(Semaphore semaphore) { in tryAcquire()
264 return new SemaphoreResource(acquired ? semaphore : null); in tryAcquire()
267 static SemaphoreResource acquire(Semaphore semaphore) throws InterruptedIOException { in acquire()
273 return new SemaphoreResource(semaphore); in acquire()
276 SemaphoreResource(@Nullable Semaphore semaphore) { in SemaphoreResource() method in LockScope.SemaphoreResource