Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 498 for reallocated (0.19 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/AbstractAvailablePortAllocator.groovy

                for (int i = 0; i < reservations.size(); i++) {
                    ReservedPortRange range = reservations.get(i)
                    if (range.allocated.contains(port)) {
                        range.deallocate(port)
                        if (reservations.size() > 1 && range.allocated.isEmpty()) {
                            releaseRange(range)
                        }
                    }
                }
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 05 16:58:31 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. pkg/registry/core/service/allocator/bitmap.go

    	r.lock.Lock()
    	defer r.lock.Unlock()
    
    	next, ok := r.strategy.AllocateBit(r.allocated, r.max, r.count)
    	if !ok {
    		return 0, false, nil
    	}
    	r.count++
    	r.allocated = r.allocated.SetBit(r.allocated, next, 1)
    	return next, true, nil
    }
    
    // Release releases the item back to the pool. Releasing an
    // unallocated item or an item out of the range is a no-op and
    // returns no error.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/resource/v1alpha2/types_swagger_doc_generated.go

    	"driverName":            "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.",
    	"allocation":            "Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  4. pkg/apis/resource/types.go

    	// deallocated.
    	//
    	// The driver then must deallocate this claim and reset the field
    	// together with clearing the Allocation field.
    	//
    	// While DeallocationRequested is set, no new consumers may be added to
    	// ReservedFor.
    	// +optional
    	DeallocationRequested bool
    }
    
    // ReservedForMaxSize is the maximum number of entries in
    // claim.status.reservedFor.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. pkg/registry/core/service/ipallocator/metrics.go

    type metricsRecorderInterface interface {
    	setAllocated(cidr string, allocated int)
    	setAvailable(cidr string, available int)
    	incrementAllocations(cidr, scope string)
    	incrementAllocationErrors(cidr, scope string)
    }
    
    // metricsRecorder implements metricsRecorderInterface.
    type metricsRecorder struct{}
    
    func (m *metricsRecorder) setAllocated(cidr string, allocated int) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 13 13:33:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/resource/v1alpha2/generated.proto

      // +patchMergeKey=uid
      // +optional
      repeated ResourceClaimConsumerReference reservedFor = 3;
    
      // DeallocationRequested indicates that a ResourceClaim is to be
      // deallocated.
      //
      // The driver then must deallocate this claim and reset the field
      // together with clearing the Allocation field.
      //
      // While DeallocationRequested is set, no new consumers may be added to
      // ReservedFor.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 22:07:50 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/resource/v1alpha2/types.go

    	// DeallocationRequested indicates that a ResourceClaim is to be
    	// deallocated.
    	//
    	// The driver then must deallocate this claim and reset the field
    	// together with clearing the Allocation field.
    	//
    	// While DeallocationRequested is set, no new consumers may be added to
    	// ReservedFor.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 10:22:35 UTC 2024
    - 30K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/storage/storage_test.go

    	ok, err := backing.Allocate(1)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if ok {
    		t.Fatal("Expected allocation to fail")
    	}
    	if err := storage.Allocate(netutils.ParseIPSloppy("192.168.1.2")); err != ipallocator.ErrAllocated {
    		t.Fatal(err)
    	}
    }
    
    func TestAllocateReserved(t *testing.T) {
    	_, storage, _, si, destroyFunc := newStorage(t)
    	defer destroyFunc()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. pkg/registry/core/service/portallocator/storage/storage_test.go

    	ok, err := backing.Allocate(100)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// It should not allocate the port because it was already allocated
    	if ok {
    		t.Fatal("Expected allocation to fail")
    	}
    	// Try to allocate the port again should fail
    	if err := storage.Allocate(30100); err != portallocator.ErrAllocated {
    		t.Fatal(err)
    	}
    
    	// Release the port
    	if err := storage.Release(30100); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. tensorflow/c/tf_tensor.h

    TF_CAPI_EXPORT extern size_t TF_TensorDefaultAlignment();
    
    // Allocate and return a new Tensor.
    //
    // This function is an alternative to TF_NewTensor and should be used when
    // memory is allocated to pass the Tensor to the C API. The allocated memory
    // satisfies TensorFlow's memory alignment preferences and should be preferred
    // over calling malloc and free.
    //
    // The caller must set the Tensor values by writing them to the pointer returned
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top