Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for AtomicBoolean (0.16 sec)

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

          final Monitor monitor,
          boolean expectedIsOccupied,
          boolean expectedIsOccupiedByCurrentThread,
          int expectedOccupiedDepth) {
        final AtomicBoolean actualIsOccupied = new AtomicBoolean();
        final AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean();
        final AtomicInteger actualOccupiedDepth = new AtomicInteger();
        final AtomicReference<Throwable> thrown = new AtomicReference<>();
        joinUninterruptibly(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

       * of the {@code Map} method calls and check that {@code setUpRan} is true.
       */
      private static class CheckSetUpHashMapGenerator extends WrappedHashMapGenerator {
        private final AtomicBoolean setUpRan;
    
        CheckSetUpHashMapGenerator(AtomicBoolean setUpRan) {
          this.setUpRan = setUpRan;
        }
    
        @Override
        Map<String, String> wrap(HashMap<String, String> map) {
          @SuppressWarnings("unchecked")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

       * of the {@code Map} method calls and check that {@code setUpRan} is true.
       */
      private static class CheckSetUpHashMapGenerator extends WrappedHashMapGenerator {
        private final AtomicBoolean setUpRan;
    
        CheckSetUpHashMapGenerator(AtomicBoolean setUpRan) {
          this.setUpRan = setUpRan;
        }
    
        @Override
        Map<String, String> wrap(HashMap<String, String> map) {
          @SuppressWarnings("unchecked")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // blocking wait
      public void testCancel_interrupted() throws Exception {
        final AtomicBoolean interruptedExceptionThrown = new AtomicBoolean();
        final CountDownLatch enterLatch = new CountDownLatch(1);
        final CountDownLatch exitLatch = new CountDownLatch(1);
        final TrustedListenableFutureTask<Integer> task =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        final AtomicReference<AbstractFuture<String>> setFutureFuture = Atomics.newReference();
        final AtomicBoolean setFutureSetSuccess = new AtomicBoolean();
        final AtomicBoolean setFutureCompletionSuccess = new AtomicBoolean();
        final AtomicBoolean cancellationSuccess = new AtomicBoolean();
        Runnable cancelRunnable =
            new Runnable() {
              @Override
              public void run() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        assertEquals(2, numCalls.get());
    
        assertTrue(Thread.interrupted());
      }
    
      public void testDelegateRejection() {
        final AtomicInteger numCalls = new AtomicInteger();
        final AtomicBoolean reject = new AtomicBoolean(true);
        final SequentialExecutor executor =
            new SequentialExecutor(
                new Executor() {
                  @Override
                  public void execute(Runnable r) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // blocking wait
      public void testCancel_interrupted() throws Exception {
        final AtomicBoolean interruptedExceptionThrown = new AtomicBoolean();
        final CountDownLatch enterLatch = new CountDownLatch(1);
        final CountDownLatch exitLatch = new CountDownLatch(1);
        final TrustedListenableFutureTask<Integer> task =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      public void testRemovalNotification_clear() throws InterruptedException {
        // If a clear() happens while a computation is pending, we should not get a removal
        // notification.
    
        final AtomicBoolean shouldWait = new AtomicBoolean(false);
        final CountDownLatch computingLatch = new CountDownLatch(1);
        CacheLoader<String, String> computingFunction =
            new CacheLoader<String, String>() {
              @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

          final Monitor monitor,
          boolean expectedIsOccupied,
          boolean expectedIsOccupiedByCurrentThread,
          int expectedOccupiedDepth) {
        final AtomicBoolean actualIsOccupied = new AtomicBoolean();
        final AtomicBoolean actualIsOccupiedByCurrentThread = new AtomicBoolean();
        final AtomicInteger actualOccupiedDepth = new AtomicInteger();
        final AtomicReference<Throwable> thrown = new AtomicReference<>();
        joinUninterruptibly(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

                    } else {
                      return EndpointPair.ordered(connection.node, thisNode);
                    }
                  });
        }
    
        AtomicBoolean alreadySeenSelfLoop = new AtomicBoolean(false);
        return new AbstractIterator<EndpointPair<N>>() {
          @Override
          @CheckForNull
          protected EndpointPair<N> computeNext() {
            while (resultWithDoubleSelfLoop.hasNext()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 18K bytes
    - Viewed (0)
Back to top