- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for testTryLockTimeoutNotExceeded (0.18 seconds)
-
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
assertFalse(lockAcquired); assertAtLeastTimePassed(stopwatch, 500); assertNotInterrupted(); // finish locking thread lockThread.interrupt(); } public void testTryLockTimeoutNotExceeded() { Stopwatch stopwatch = Stopwatch.createStarted(); Lock lock = new ReentrantLock(); acquireFor(lock, 500, MILLISECONDS); boolean acquired = tryLockUninterruptibly(lock, 1500, MILLISECONDS);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
assertFalse(lockAcquired); assertAtLeastTimePassed(stopwatch, 500); assertNotInterrupted(); // finish locking thread lockThread.interrupt(); } public void testTryLockTimeoutNotExceeded() { Stopwatch stopwatch = Stopwatch.createStarted(); Lock lock = new ReentrantLock(); acquireFor(lock, 500, MILLISECONDS); boolean acquired = tryLockUninterruptibly(lock, 1500, MILLISECONDS);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0)