Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for putConn (0.17 sec)

  1. src/database/sql/sql.go

    			ds.Close()
    		}
    	}
    }
    
    // debugGetPut determines whether getConn & putConn calls' stack traces
    // are returned for more verbose crashes.
    const debugGetPut = false
    
    // putConn adds a connection to the db's free pool.
    // err is optionally the last error that occurred on this connection.
    func (db *DB) putConn(dc *driverConn, err error, resetSession bool) {
    	if !errors.Is(err, driver.ErrBadConn) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    			waitingForConn := make(chan struct{})
    
    			go func() {
    				defer close(afterPutConn)
    
    				conn, err := db.conn(ctx, alwaysNewConn)
    				if err == nil {
    					db.putConn(conn, err, false)
    				} else {
    					t.Errorf("db.conn: %v", err)
    				}
    			}()
    			go func() {
    				defer close(waitingForConn)
    
    				for {
    					if t.Failed() {
    						return
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  3. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hashing.java

                update(4);
            }
    
            @Override
            public void putLong(long value) {
                buffer.putLong(value);
                update(8);
            }
    
            @Override
            public void putDouble(double value) {
                long longValue = Double.doubleToRawLongBits(value);
                putLong(longValue);
            }
    
            @Override
            public void putBoolean(boolean value) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:30 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HasherExtensions.java

            }
        }
    
        public static void putLongs(Hasher hasher, long[] array) {
            hasher.putInt(array.length);
            for (long l : array) {
                hasher.putLong(l);
            }
        }
    
        public static void putInts(Hasher hasher, int[] array) {
            hasher.putInt(array.length);
            for (int i : array) {
                hasher.putInt(i);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:02 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/Hasher.java

         */
        void putByte(byte value);
    
        /**
         * Feed an integer byte into the hasher.
         */
        void putInt(int value);
    
        /**
         * Feed a long value byte into the hasher.
         */
        void putLong(long value);
    
        /**
         * Feed a double value into the hasher.
         */
        void putDouble(double value);
    
        /**
         * Feed a boolean value into the hasher.
         */
        void putBoolean(boolean value);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 11:14:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

            return theUnsafe.getLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET);
          }
    
          @Override
          public void putLongLittleEndian(byte[] array, int offset, long value) {
            theUnsafe.putLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET, value);
          }
        },
        UNSAFE_BIG_ENDIAN {
          @Override
          public long getLongLittleEndian(byte[] array, int offset) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/LittleEndianByteArray.java

            return theUnsafe.getLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET);
          }
    
          @Override
          public void putLongLittleEndian(byte[] array, int offset, long value) {
            theUnsafe.putLong(array, (long) offset + BYTE_ARRAY_BASE_OFFSET, value);
          }
        },
        UNSAFE_BIG_ENDIAN {
          @Override
          public long getLongLittleEndian(byte[] array, int offset) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/BloomFilterTest.java

      }
    
      private static final class CustomFunnel implements Funnel<Long> {
        @Override
        public void funnel(Long value, PrimitiveSink into) {
          into.putLong(value);
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
          return (object instanceof CustomFunnel);
        }
    
        @Override
        public int hashCode() {
          return 42;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/Stats.java

        checkNotNull(buffer);
        checkArgument(
            buffer.remaining() >= BYTES,
            "Expected at least Stats.BYTES = %s remaining , got %s",
            BYTES,
            buffer.remaining());
        buffer
            .putLong(count)
            .putDouble(mean)
            .putDouble(sumOfSquaresOfDeltas)
            .putDouble(min)
            .putDouble(max);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 22K bytes
    - Viewed (0)
  10. guava/src/com/google/common/math/Stats.java

        checkNotNull(buffer);
        checkArgument(
            buffer.remaining() >= BYTES,
            "Expected at least Stats.BYTES = %s remaining , got %s",
            BYTES,
            buffer.remaining());
        buffer
            .putLong(count)
            .putDouble(mean)
            .putDouble(sumOfSquaresOfDeltas)
            .putDouble(min)
            .putDouble(max);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top