Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for reserves (0.31 sec)

  1. src/cmd/go/internal/web/url_windows.go

    	// https://blogs.msdn.microsoft.com/ie/2006/12/06/file-uris-in-windows/.
    
    	// The host part of a file URL (if any) is the UNC volume name,
    	// but RFC 8089 reserves the authority "localhost" for the local machine.
    	if host != "" && host != "localhost" {
    		// A common "legacy" format omits the leading slash before a drive letter,
    		// encoding the drive letter as the host instead of part of the path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:43:51 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  2. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonClientsManagerTest.groovy

        def "does not reserve idle client when no clients"() {
            expect:
            manager.reserveIdleClient(options) == null
        }
    
        def "does not reserve idle client when no matching client found"() {
            def noMatch = Stub(WorkerDaemonClient) {
                isCompatibleWith(_) >> false
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/allocator.go

    // This approach puts less load on GC and leads to less fragmented memory in general.
    type Allocator struct {
    	buf []byte
    }
    
    var _ MemoryAllocator = &Allocator{}
    
    // Allocate reserves memory for n bytes only if the underlying array doesn't have enough capacity
    // otherwise it returns previously allocated block of memory.
    //
    // Note that the returned array is not zeroed, it is the caller's
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  4. src/runtime/cgo_sigaction.go

    			// check will always succeed anyway.
    			systemstack(func() {
    				ret = callCgoSigaction(uintptr(sig), new, old)
    			})
    		}
    
    		const EINVAL = 22
    		if ret == EINVAL {
    			// libc reserves certain signals — normally 32-33 — for pthreads, and
    			// returns EINVAL for sigaction calls on those signals.  If we get EINVAL,
    			// fall back to making the syscall directly.
    			sysSigaction(sig, new, old)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       */
      @CanIgnoreReturnValue
      public double acquire(int permits) {
        long microsToWait = reserve(permits);
        stopwatch.sleepMicrosUninterruptibly(microsToWait);
        return 1.0 * microsToWait / SECONDS.toMicros(1L);
      }
    
      /**
       * Reserves the given number of permits from this {@code RateLimiter} for future use, returning
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_windows.go

    	resources := runtimeapi.WindowsContainerResources{}
    
    	memLimit := memoryLimit.Value()
    
    	if !cpuLimit.IsZero() {
    		// Since Kubernetes doesn't have any notion of weight in the Pod/Container API, only limits/reserves, then applying CpuMaximum only
    		// will better follow the intent of the user. At one point CpuWeights were set, but this prevented limits from having any effect.
    
    		// There are 3 parts to how this works:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/RateLimiter.java

       */
      @CanIgnoreReturnValue
      public double acquire(int permits) {
        long microsToWait = reserve(permits);
        stopwatch.sleepMicrosUninterruptibly(microsToWait);
        return 1.0 * microsToWait / SECONDS.toMicros(1L);
      }
    
      /**
       * Reserves the given number of permits from this {@code RateLimiter} for future use, returning
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  8. src/runtime/tracebuf.go

    		if v < 0x80 {
    			pos += i + 1
    			arr[i] = byte(v)
    			break
    		}
    		arr[i] = 0x80 | byte(v)
    		v >>= 7
    	}
    	buf.pos = pos
    }
    
    // varintReserve reserves enough space in buf to hold any varint.
    //
    // Space reserved this way can be filled in with the varintAt method.
    func (buf *traceBuf) varintReserve() int {
    	p := buf.pos
    	buf.pos += traceBytesPerNumber
    	return p
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DetachedConfigurationsIntegrationTest.groovy

                contextualLabel == 'The detachedConfiguration1 configuration has been deprecated for consumption.'
            }
        }
    
        def "configurations container reserves name #name for detached configurations"() {
            given:
            buildFile << """
                configurations {
                    $name
                }
            """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 15:16:47 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. pkg/registry/core/service/allocator/bitmap.go

    	}
    	if r.allocated.Bit(offset) == 1 {
    		return false, nil
    	}
    	r.allocated = r.allocated.SetBit(r.allocated, offset, 1)
    	r.count++
    	return true, nil
    }
    
    // AllocateNext reserves one of the items from the pool.
    // (0, false, nil) may be returned if there are no items left.
    func (r *AllocationBitmap) AllocateNext() (int, bool, error) {
    	r.lock.Lock()
    	defer r.lock.Unlock()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top