Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for incrementAndGet (0.08 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

            builder.build(
                new CacheLoader<String, Object>() {
                  @Override
                  public Object load(String key) throws InterruptedException {
                    callCount.incrementAndGet();
                    startSignal.await();
                    return result;
                  }
                });
    
        List<Object> resultArray = doConcurrentGet(cache, "bar", count, startSignal);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbSessionImpl.java

            }
            throw new ClassCastException();
        }
    
    
        /**
         * @return session increased usage count
         */
        public SmbSessionImpl acquire () {
            long usage = this.usageCount.incrementAndGet();
            if ( log.isTraceEnabled() ) {
                log.trace("Acquire session " + usage + " " + this);
            }
    
            if ( usage == 1 ) {
                synchronized ( this ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportImpl.java

            }
            return wasInUse;
        }
    
    
        @Override
        protected long makeKey ( Request request ) throws IOException {
            long m = this.mid.incrementAndGet() - 1;
            if ( !this.smb2 ) {
                m = ( m % 32000 );
            }
            ( (CommonServerMessageBlock) request ).setMid(m);
            return m;
        }
    
    
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/MapMakerInternalMap.java

         * the cleanupExecutor. If cleanup is not observed after a sufficient number of reads, try
         * cleaning up from the read thread.
         */
        void postReadCleanup() {
          if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) {
            runCleanup();
          }
        }
    
        /**
         * Performs routine cleanup prior to executing a write. This should be called every time a write
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         * the cleanupExecutor. If cleanup is not observed after a sufficient number of reads, try
         * cleaning up from the read thread.
         */
        void postReadCleanup() {
          if ((readCount.incrementAndGet() & DRAIN_THRESHOLD) == 0) {
            runCleanup();
          }
        }
    
        /**
         * Performs routine cleanup prior to executing a write. This should be called every time a write
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
Back to top