Searched refs:SemaphoreResource (Results 1 – 1 of 1) sorted by relevance
101 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 LockScope262 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