Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for putConn (0.27 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-runtime/base-services/src/main/java/org/gradle/internal/id/UniqueId.java

        public static UniqueId from(UUID uuid) {
            long msb = uuid.getMostSignificantBits();
            long lsb = uuid.getLeastSignificantBits();
    
            byte[] bytes = new byte[16];
            ByteBuffer.wrap(bytes).putLong(msb).putLong(lsb);
            String value = ENCODING.encode(bytes);
    
            return new UniqueId(value);
        }
    
        public static UniqueId from(String string) {
            if (PATTERN.matcher(string).matches()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/LongValueSnapshot.java

        public LongValueSnapshot(Long value) {
            super(value);
        }
    
        @Override
        public void appendToHasher(Hasher hasher) {
            hasher.putLong(getValue());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 957 bytes
    - Viewed (0)
  6. 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)
  7. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/PrimitiveHasher.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: Fri Sep 22 08:43:29 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top