Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for isOccupiedByCurrentThread (0.08 sec)

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

        assertFalse(monitor.isOccupiedByCurrentThread());
        monitor.enter();
        try {
          assertTrue(monitor.isOccupiedByCurrentThread());
    
          doWaitScenarioSetUp();
    
          boolean interruptedBeforeCall = Thread.currentThread().isInterrupted();
          Outcome actualOutcome = doCall();
          boolean occupiedAfterCall = monitor.isOccupiedByCurrentThread();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 27.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

          boolean expectedIsOccupiedByCurrentThread,
          int expectedOccupiedDepth) {
        assertEquals(expectedIsOccupied, monitor.isOccupied());
        assertEquals(expectedIsOccupiedByCurrentThread, monitor.isOccupiedByCurrentThread());
        assertEquals(expectedOccupiedDepth, monitor.getOccupiedDepth());
      }
    
      private static void verifyOccupiedMethodsInAnotherThread(
          Monitor monitor,
          boolean expectedIsOccupied,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

          boolean expectedIsOccupiedByCurrentThread,
          int expectedOccupiedDepth) {
        assertEquals(expectedIsOccupied, monitor.isOccupied());
        assertEquals(expectedIsOccupiedByCurrentThread, monitor.isOccupiedByCurrentThread());
        assertEquals(expectedOccupiedDepth, monitor.getOccupiedDepth());
      }
    
      private static void verifyOccupiedMethodsInAnotherThread(
          Monitor monitor,
          boolean expectedIsOccupied,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/AbstractService.java

      }
    
      /**
       * Attempts to execute all the listeners in {@link #listeners} while not holding the {@link
       * #monitor}.
       */
      private void dispatchListenerEvents() {
        if (!monitor.isOccupiedByCurrentThread()) {
          listeners.dispatch();
        }
      }
    
      private void enqueueStartingEvent() {
        listeners.enqueue(STARTING_EVENT);
      }
    
      private void enqueueRunningEvent() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractService.java

      }
    
      /**
       * Attempts to execute all the listeners in {@link #listeners} while not holding the {@link
       * #monitor}.
       */
      private void dispatchListenerEvents() {
        if (!monitor.isOccupiedByCurrentThread()) {
          listeners.dispatch();
        }
      }
    
      private void enqueueStartingEvent() {
        listeners.enqueue(STARTING_EVENT);
      }
    
      private void enqueueRunningEvent() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/ServiceManager.java

                }
              });
        }
    
        /** Attempts to execute all the listeners in {@link #listeners}. */
        void dispatchListenerEvents() {
          checkState(
              !monitor.isOccupiedByCurrentThread(),
              "It is incorrect to execute listeners with the monitor held.");
          listeners.dispatch();
        }
    
        @GuardedBy("monitor")
        void checkHealthy() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 17:49:12 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

                }
              });
        }
    
        /** Attempts to execute all the listeners in {@link #listeners}. */
        void dispatchListenerEvents() {
          checkState(
              !monitor.isOccupiedByCurrentThread(),
              "It is incorrect to execute listeners with the monitor held.");
          listeners.dispatch();
        }
    
        @GuardedBy("monitor")
        void checkHealthy() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 17:49:12 UTC 2025
    - 33.2K bytes
    - Viewed (1)
Back to top