Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 47 for uninterruptible (0.11 seconds)

  1. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

    /**
     * Utilities for treating interruptible operations as uninterruptible. In all cases, if a thread is
     * interrupted during such a call, the call continues to block until the result is available or the
     * timeout elapses, and only then re-interrupts the thread.
     *
     * @author Anthony Zana
     * @since 10.0
     */
    @GwtCompatible
    public final class Uninterruptibles {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 23:24:32 GMT 2026
    - 22.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

          this.satisfied = satisfied;
        }
      }
    
      private final boolean interruptible;
      private Monitor monitor;
      private final TearDownStack tearDownStack = new TearDownStack();
      private TestThread<Monitor> thread1;
      private TestThread<Monitor> thread2;
    
      protected MonitorTestCase(boolean interruptible) {
        this.interruptible = interruptible;
      }
    
      @Override
      protected final void setUp() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleMonitorTest.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link Monitor}'s uninterruptible methods.
     *
     * @author Justin T. Sampson
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class UninterruptibleMonitorTest extends MonitorTestCase {
    
      public UninterruptibleMonitorTest() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

          this.satisfied = satisfied;
        }
      }
    
      private final boolean interruptible;
      private Monitor monitor;
      private final TearDownStack tearDownStack = new TearDownStack();
      private TestThread<Monitor> thread1;
      private TestThread<Monitor> thread2;
    
      protected MonitorTestCase(boolean interruptible) {
        this.interruptible = interruptible;
      }
    
      @Override
      protected final void setUp() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/UninterruptibleMonitorTest.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link Monitor}'s uninterruptible methods.
     *
     * @author Justin T. Sampson
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class UninterruptibleMonitorTest extends MonitorTestCase {
    
      public UninterruptibleMonitorTest() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/util/concurrent/TestThread.java

       * at the end of the test, so there is no object state put at risk by stopping the threads
       * abruptly. In other cases, a test may put a thread into an uninterruptible operation
       * intentionally, so there is no other way to clean up these threads. (The better solution,
       * though, would be to run the tests that use TestThread in separate VMs so that their threads
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/QueuesTest.java

          fail();
        } catch (InterruptedException expected) {
          // we indeed waited; a slow thread had enough time to interrupt us
        }
      }
    
      // same as above; uninterruptible version
      @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
      private void assertUninterruptibleDrained(BlockingQueue<Object> q) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

       * at the end of the test, so there is no object state put at risk by stopping the threads
       * abruptly. In other cases, a test may put a thread into an uninterruptible operation
       * intentionally, so there is no other way to clean up these threads. (The better solution,
       * though, would be to run the tests that use TestThread in separate VMs so that their threads
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/Futures.java

       * from the underlying computation in an {@code UncheckedExecutionException} or {@code
       * ExecutionError}.
       *
       * <p>For an uninterruptible {@code get} that preserves other exceptions, see {@link
       * Uninterruptibles#getUninterruptibly(Future)}.
       *
       * @throws UncheckedExecutionException if {@code get} throws an {@code ExecutionException} with an
       *     {@code Exception} as its cause
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 64.2K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

         * interrupt before, during, or after runInterruptibly() (unless it produced an
         * InterruptedException caught above) can linger and affect listeners.
         */
      }
    
      /**
       * Called before runInterruptibly - if true, runInterruptibly and afterRanInterruptibly will not
       * be called.
       */
      abstract boolean isDone();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 10K bytes
    - Click Count (0)
Back to Top