Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 147 for Leave (0.02 sec)

  1. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

        try {
          insert(e);
        } finally {
          monitor.leave();
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable E poll() {
        final Monitor monitor = this.monitor;
        if (monitor.enterIf(notEmpty)) {
          try {
            return extract();
          } finally {
            monitor.leave();
          }
        } else {
          return null;
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

          } finally {
            monitor.leave();
          }
        } else {
          return null;
        }
      }
    
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public E take() throws InterruptedException {
        final Monitor monitor = this.monitor;
        monitor.enterWhen(notEmpty);
        try {
          return q.poll();
        } finally {
          monitor.leave();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 07 21:36:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

            verifyOccupiedMethodsInAnotherThread(monitor, true, false, 0);
          } finally {
            monitor.leave();
          }
          verifyOccupiedMethodsInCurrentThread(monitor, true, true, 1);
          verifyOccupiedMethodsInAnotherThread(monitor, true, false, 0);
        } finally {
          monitor.leave();
        }
        verifyOccupiedMethodsInCurrentThread(monitor, false, false, 0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

            verifyOccupiedMethodsInAnotherThread(monitor, true, false, 0);
          } finally {
            monitor.leave();
          }
          verifyOccupiedMethodsInCurrentThread(monitor, true, true, 1);
          verifyOccupiedMethodsInAnotherThread(monitor, true, false, 0);
        } finally {
          monitor.leave();
        }
        verifyOccupiedMethodsInCurrentThread(monitor, false, false, 0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AbstractService.java

            notifyFailed(shutdownFailure);
          } finally {
            monitor.leave();
            dispatchListenerEvents();
          }
        }
        return this;
      }
    
      @Override
      public final void awaitRunning() {
        monitor.enterWhenUninterruptibly(hasReachedRunning);
        try {
          checkCurrentState(RUNNING);
        } finally {
          monitor.leave();
        }
      }
    
      /** @since 28.0 */
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractService.java

            notifyFailed(shutdownFailure);
          } finally {
            monitor.leave();
            dispatchListenerEvents();
          }
        }
        return this;
      }
    
      @Override
      public final void awaitRunning() {
        monitor.enterWhenUninterruptibly(hasReachedRunning);
        try {
          checkCurrentState(RUNNING);
        } finally {
          monitor.leave();
        }
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/UnmodifiableListIterator.java

        extends UnmodifiableIterator<E> implements ListIterator<E> {
      /** Constructor for use by subclasses. */
      protected UnmodifiableListIterator() {}
    
      /**
       * Guaranteed to throw an exception and leave the underlying data unmodified.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableCollection.java

      int internalArrayEnd() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public abstract boolean contains(@CheckForNull Object object);
    
      /**
       * Guaranteed to throw an exception and leave the collection unmodified.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        } else {
          assertNull(task.get(UNEXPECTED_HANG_DELAY_MILLIS, TimeUnit.MILLISECONDS));
        }
      }
    
      @Override
      protected void tearDown() throws Exception {
        // We don't want to leave stray threads running after each test. At this point, every thread
        // launched by this test is either:
        //
        // (a) Blocked attempting to enter the monitor.
        // (b) Waiting for the single guard to become satisfied.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

            }
          } finally {
            monitor.leave();
          }
        }
    
        void addListener(Listener listener, Executor executor) {
          listeners.addListener(listener, executor);
        }
    
        void awaitHealthy() {
          monitor.enterWhenUninterruptibly(awaitHealthGuard);
          try {
            checkHealthy();
          } finally {
            monitor.leave();
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top