Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for observed (0.17 sec)

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

          assertNotNull(object);
          assertSame(object, striped.getAt(i)); // idempotent
          observed.add(object);
        }
        assertTrue("All stripes observed", observed.size() == striped.size());
    
        // this uses #get(key), makes sure an already observed stripe is returned
        for (int i = 0; i < striped.size() * 100; i++) {
          assertTrue(observed.contains(striped.get(new Object())));
        }
    
        try {
          striped.getAt(-1);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

          assertNotNull(object);
          assertSame(object, striped.getAt(i)); // idempotent
          observed.add(object);
        }
        assertTrue("All stripes observed", observed.size() == striped.size());
    
        // this uses #get(key), makes sure an already observed stripe is returned
        for (int i = 0; i < striped.size() * 100; i++) {
          assertTrue(observed.contains(striped.get(new Object())));
        }
    
        try {
          striped.getAt(-1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

            }
          }
          return;
        }
    
        /*
         * This is an unsynchronized read! After the read, the function returns immediately or acquires
         * the lock to check again. Since an IDLE state was observed inside the preceding synchronized
         * block, and reference field assignment is atomic, this may save reacquiring the lock when
         * another thread or the worker task has cleared the count and set the state.
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/Striped64.java

       * only become known via CAS failures, convergence can be slow,
       * and because threads are typically not bound to CPUS forever,
       * may not occur at all. However, despite these limitations,
       * observed contention rates are typically low in these cases.
       *
       * It is possible for a Cell to become unused when threads that
       * once hashed to it terminate, as well as in the case where
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/Striped64.java

       * only become known via CAS failures, convergence can be slow,
       * and because threads are typically not bound to CPUS forever,
       * may not occur at all. However, despite these limitations,
       * observed contention rates are typically low in these cases.
       *
       * It is possible for a Cell to become unused when threads that
       * once hashed to it terminate, as well as in the case where
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

                }
              };
          executor.execute(errorTask);
          service.execute(barrierTask); // submit directly to the service
          // the barrier task runs after the error task so we know that the error has been observed by
          // SequentialExecutor by the time the barrier is satisfied
          barrier.await(1, TimeUnit.SECONDS);
          executor.execute(barrierTask);
          // timeout means the second task wasn't even tried
    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/src/com/google/common/util/concurrent/AbstractFuture.java

      // * Future completion is defined by when #value becomes non-null/non SetFuture
      // * Future completion can be observed if the waiters field contains a TOMBSTONE
    
      // Timed Get
      // There are a few design constraints to consider
      // * We want to be responsive to small timeouts, unpark() has non trivial latency overheads (I
      //   have observed 12 micros on 64-bit linux systems to wake up a parked thread). So if the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

       *
       * The initial write to delegateRef is made definitely visible via the semantics of
       * addListener/SES.schedule. The later racy write in cancel() is not guaranteed to be observed,
       * however that is fine since the correctness is based on the atomic state in our base class. The
       * initial write to timer is never definitely visible to Fire.run since it is assigned after
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Striped64.java

       * only become known via CAS failures, convergence can be slow,
       * and because threads are typically not bound to CPUS forever,
       * may not occur at all. However, despite these limitations,
       * observed contention rates are typically low in these cases.
       *
       * It is possible for a Cell to become unused when threads that
       * once hashed to it terminate, as well as in the case where
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

          }
        }
        int oldValue = existingCounter.get();
        if (oldValue == expectedOldCount) {
          if (oldValue == 0) {
            if (newCount == 0) {
              // Just observed a 0; try to remove the entry to clean up the map
              countMap.remove(element, existingCounter);
              return true;
            } else {
              AtomicInteger newCounter = new AtomicInteger(newCount);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
Back to top