Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for nswap (0.04 sec)

  1. cmd/xl-storage-disk-id-check.go

    	// alloc on every call, so we have a clean entry to swap in.
    	t := time.Now().Unix()
    	e.init.Do(func() {
    		e.cached.Store(&AccElem{})
    		atomic.StoreInt64(&e.cachedSec, t)
    	})
    	acc := e.cached.Load()
    	if lastT := atomic.LoadInt64(&e.cachedSec); lastT != t {
    		// Check if lastT was changed by someone else.
    		if atomic.CompareAndSwapInt64(&e.cachedSec, lastT, t) {
    			// Now we swap in a new.
    			newAcc := &AccElem{}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:56:26 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ObjectArrays.java

        int i = 0;
        for (Object element : elements) {
          array[i++] = element;
        }
        return array;
      }
    
      /** Swaps {@code array[i]} with {@code array[j]}. */
      static void swap(Object[] array, int i, int j) {
        Object temp = array[i];
        array[i] = array[j];
        array[j] = temp;
      }
    
      @CanIgnoreReturnValue
      static Object[] checkElementsNotNull(Object... array) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

      }
    
      /**
       * Returns a plan to reuse a pooled connection, or null if the pool doesn't have a connection for
       * this address.
       *
       * If [planToReplace] is non-null, this will swap it for a pooled connection if that pooled
       * connection uses HTTP/2. That results in fewer sockets overall and thus fewer TCP slow starts.
       */
      internal fun planReusePooledConnection(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/BloomFilterStrategies.java

        }
      };
    
      /**
       * Models a lock-free array of bits.
       *
       * <p>We use this instead of java.util.BitSet because we need access to the array of longs and we
       * need compare-and-swap.
       */
      static final class LockFreeBitArray {
        private static final int LONG_ADDRESSABLE_BITS = 6;
        final AtomicLongArray data;
        private final LongAddable bitCount;
    
        LockFreeBitArray(long bits) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ObjectArrays.java

        int i = 0;
        for (Object element : elements) {
          array[i++] = element;
        }
        return array;
      }
    
      /** Swaps {@code array[i]} with {@code array[j]}. */
      static void swap(Object[] array, int i, int j) {
        Object temp = array[i];
        array[i] = array[j];
        array[j] = temp;
      }
    
      @CanIgnoreReturnValue
      static Object[] checkElementsNotNull(Object... array) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       * <p>Normally this method leaves the elements at up to {@code index - 1}, inclusive, untouched.
       * Under these circumstances, it returns {@code null}.
       *
       * <p>Occasionally, in order to maintain the heap invariant, it must swap a later element of the
       * list with one before {@code index}. Under these circumstances it returns a pair of elements as
       * a {@link MoveDesc}. The first one is the element that was previously at the end of the heap and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

       * fraction {@code sqrt(1/(R*R) - 1)} of the population standard deviation of {@code x}. This fit
       * does not normally minimize that error: to do that, you should swap the roles of {@code x} and
       * {@code y}.
       *
       * <h3>Non-finite values</h3>
       *
       * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

      fun commit(upstreamSize: Long) {
        // Write metadata to the end of the file.
        writeMetadata(upstreamSize)
        file!!.channel.force(false)
    
        // Once everything else is in place we can swap the dirty header for a clean one.
        writeHeader(PREFIX_CLEAN, upstreamSize, metadata.size.toLong())
        file!!.channel.force(false)
    
        // This file is complete.
        synchronized(this@Relay) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

       * <p>Normally this method leaves the elements at up to {@code index - 1}, inclusive, untouched.
       * Under these circumstances, it returns {@code null}.
       *
       * <p>Occasionally, in order to maintain the heap invariant, it must swap a later element of the
       * list with one before {@code index}. Under these circumstances it returns a pair of elements as
       * a {@link MoveDesc}. The first one is the element that was previously at the end of the heap and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/PairedStats.java

       * fraction {@code sqrt(1/(R*R) - 1)} of the population standard deviation of {@code x}. This fit
       * does not normally minimize that error: to do that, you should swap the roles of {@code x} and
       * {@code y}.
       *
       * <h3>Non-finite values</h3>
       *
       * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 12.6K bytes
    - Viewed (0)
Back to top