Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for testTryLockInterruptedTimeoutNotExceeded (0.2 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        assertFalse(acquired);
        assertAtLeastTimePassed(stopwatch, 1000);
        assertInterrupted();
    
        // finish locking thread
        lockThread.interrupt();
      }
    
      public void testTryLockInterruptedTimeoutNotExceeded() {
        Stopwatch stopwatch = Stopwatch.createStarted();
        Lock lock = new ReentrantLock();
        acquireFor(lock, 1000, MILLISECONDS);
        requestInterruptIn(500);
    
    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)
  2. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        assertFalse(acquired);
        assertAtLeastTimePassed(stopwatch, 1000);
        assertInterrupted();
    
        // finish locking thread
        lockThread.interrupt();
      }
    
      public void testTryLockInterruptedTimeoutNotExceeded() {
        Stopwatch stopwatch = Stopwatch.createStarted();
        Lock lock = new ReentrantLock();
        acquireFor(lock, 1000, MILLISECONDS);
        requestInterruptIn(500);
    
    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)
Back to Top