Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getOccupiedDepth (2.06 sec)

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

        assertEquals(expectedIsOccupied, monitor.isOccupied());
        assertEquals(expectedIsOccupiedByCurrentThread, monitor.isOccupiedByCurrentThread());
        assertEquals(expectedOccupiedDepth, monitor.getOccupiedDepth());
      }
    
      private static void verifyOccupiedMethodsInAnotherThread(
          Monitor monitor,
          boolean expectedIsOccupied,
          boolean expectedIsOccupiedByCurrentThread,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

        assertEquals(expectedIsOccupied, monitor.isOccupied());
        assertEquals(expectedIsOccupiedByCurrentThread, monitor.isOccupiedByCurrentThread());
        assertEquals(expectedOccupiedDepth, monitor.getOccupiedDepth());
      }
    
      private static void verifyOccupiedMethodsInAnotherThread(
          Monitor monitor,
          boolean expectedIsOccupied,
          boolean expectedIsOccupiedByCurrentThread,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

        thread1.callAndAssertReturns(enterCount != 0, "isOccupiedByCurrentThread");
        thread1.callAndAssertReturns(enterCount, "getOccupiedDepth");
    
        thread2.callAndAssertReturns(enterCount != 0, "isOccupied");
        thread2.callAndAssertReturns(false, "isOccupiedByCurrentThread");
        thread2.callAndAssertReturns(0, "getOccupiedDepth");
      }
    
      public final void testEnterWhen_initiallyTrue() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/Monitor.java

      /**
       * Returns the number of times the current thread has entered this monitor in excess of the number
       * of times it has left. Returns 0 if the current thread is not occupying this monitor.
       */
      public int getOccupiedDepth() {
        return lock.getHoldCount();
      }
    
      /**
       * Returns an estimate of the number of threads waiting to enter this monitor. The value is only
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 42.8K bytes
    - Viewed (0)
Back to top