Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for benoit (0.19 sec)

  1. guava/src/com/google/common/base/FinalizableReferenceQueue.java

       */
      void cleanUp() {
        if (threadStarted) {
          return;
        }
    
        Reference<?> reference;
        while ((reference = queue.poll()) != null) {
          /*
           * This is for the benefit of phantom references. Weak and soft references will have already
           * been cleared by this point.
           */
          reference.clear();
          try {
            ((FinalizableReference) reference).finalizeReferent();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

       */
      void cleanUp() {
        if (threadStarted) {
          return;
        }
    
        Reference<?> reference;
        while ((reference = queue.poll()) != null) {
          /*
           * This is for the benefit of phantom references. Weak and soft references will have already
           * been cleared by this point.
           */
          reference.clear();
          try {
            ((FinalizableReference) reference).finalizeReferent();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashMap.java

       * world. Figure out what sort of space-time tradeoff we're actually going to get here with the
       * *Map variants. This class is particularly hard to benchmark, because the benefit is not only in
       * less allocation, but also having the GC do less work to scan the heap because of fewer
       * references, which is particularly hard to quantify.
       */
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Monitor.java

     * one advantage is that we can introduce two separate {@code Condition} objects, which allows us to
     * use {@code signal()} instead of {@code signalAll()}, which may be a performance benefit.
     *
     * <pre>{@code
     * public class SafeBox<V> {
     *   private V value;
     *   private final ReentrantLock lock = new ReentrantLock();
     *   private final Condition valuePresent = lock.newCondition();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Converter.java

       * we've chosen to instead use a signature that benefits existing users -- and is still safe.
       *
       * For convertAll, I haven't looked as closely at *how* much existing users benefit, so we should
       * keep an eye out for problems that new users encounter. Note also that convertAll could support
       * both use cases by using @PolyNull. (By contrast, we can't use @PolyNull for our superinterface
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        // the monitor with the guard satisfied. Therefore as soon as tearDownLatch is triggered, we
        // should be able to enter the monitor, and then we set the guard to satisfied for the benefit
        // of any remaining waiting threads.
    
        tearDownLatch.countDown();
        assertTrue(
            "Monitor still occupied in tearDown()",
            monitor.enter(UNEXPECTED_HANG_DELAY_MILLIS, TimeUnit.MILLISECONDS));
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/ByteSource.java

       * not required to be a {@link BufferedInputStream} in order to allow implementations to simply
       * delegate to {@link #openStream()} when the stream returned by that method does not benefit from
       * additional buffering (for example, a {@code ByteArrayInputStream}). This method returns a new,
       * independent stream each time it is called.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        // the monitor with the guard satisfied. Therefore as soon as tearDownLatch is triggered, we
        // should be able to enter the monitor, and then we set the guard to satisfied for the benefit
        // of any remaining waiting threads.
    
        tearDownLatch.countDown();
        assertTrue(
            "Monitor still occupied in tearDown()",
            monitor.enter(UNEXPECTED_HANG_DELAY_MILLIS, TimeUnit.MILLISECONDS));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

            // run() on the same thread that called execute() - such as in a thread pool, and think
            // that it was happening inline. As a side benefit, avoids holding on to the Thread object
            // longer than necessary.
            submitting = null;
          }
        }
    
        @SuppressWarnings("ShortCircuitBoolean")
        @Override
        public void run() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/Striped.java

        /*
         * Padding from 40 into 64 bytes, same size as cache line. Might be beneficial to add a fourth
         * long here, to minimize chance of interference between consecutive locks, but I couldn't
         * observe any benefit from that.
         */
        long unused1;
        long unused2;
        long unused3;
    
        PaddedLock() {
          super(false);
        }
      }
    
      private static class PaddedSemaphore extends Semaphore {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
Back to top