Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,343 for Handles (0.32 sec)

  1. src/unique/handle_bench_test.go

    }
    
    func BenchmarkMakeManyMany(b *testing.B) {
    	benchmarkMake(b, testDataLarge[:])
    }
    
    func benchmarkMake(b *testing.B, testData []string) {
    	handles := make([]Handle[string], 0, len(testData))
    	for i := range testData {
    		handles = append(handles, Make(testData[i]))
    	}
    
    	b.ReportAllocs()
    	b.ResetTimer()
    
    	b.RunParallel(func(pb *testing.PB) {
    		i := 0
    		for pb.Next() {
    			_ = Make(testData[i])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/PropertyAnnotationHandler.java

    import java.lang.annotation.Annotation;
    
    /**
     * Handles validation, dependency handling, and skipping for a property marked with a given annotation.
     *
     * <p>Each handler must be registered as a global service.</p>
     */
    @ServiceScope(Scope.Global.class)
    public interface PropertyAnnotationHandler {
        /**
         * The annotation type which this handler is responsible for.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/unique/handle.go

    	"internal/weak"
    	"runtime"
    	"sync"
    	_ "unsafe"
    )
    
    // Handle is a globally unique identity for some value of type T.
    //
    // Two handles compare equal exactly if the two values used to create the handles
    // would have also compared equal. The comparison of two handles is trivial and
    // typically much more efficient than comparing the values used to create them.
    type Handle[T comparable] struct {
    	value *T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/gcimporter_test.go

    	testenv.MustHaveGoBuild(t)
    
    	// This package only handles gc export data.
    	if runtime.Compiler != "gc" {
    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    	compileAndImportPkg(t, "issue15920")
    }
    
    func TestIssue20046(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    
    	// This package only handles gc export data.
    	if runtime.Compiler != "gc" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/deployment/internal/DefaultDeploymentRegistryTest.groovy

            when:
            def handle = registry.start("id", DeploymentRegistry.ChangeBehavior.NONE, ParametersDeploymentHandle, "parameter")
            then:
            assert handle == testHandle
            and:
            registry.get("id", ParametersDeploymentHandle) == testHandle
        }
    
        def "cannot register a duplicate deployment handle" () {
            def testHandle = new TestDeploymentHandle()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. src/go/types/unify.go

    		if _, found := u.handles[x]; found {
    			return x
    		}
    	}
    	return nil
    }
    
    // setHandle sets the handle for type parameter x
    // (and all its joined type parameters) to h.
    func (u *unifier) setHandle(x *TypeParam, h *Type) {
    	hx := u.handles[x]
    	assert(hx != nil)
    	for y, hy := range u.handles {
    		if hy == hx {
    			u.handles[y] = h
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go

    	self.sf = sf
    }
    func (self *WantExternalKubeInformerFactory) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	return nil
    }
    func (self *WantExternalKubeInformerFactory) Handles(o admission.Operation) bool { return false }
    func (self *WantExternalKubeInformerFactory) ValidateInitialization() error      { return nil }
    
    var _ admission.Interface = &WantExternalKubeInformerFactory{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/unify.go

    		if _, found := u.handles[x]; found {
    			return x
    		}
    	}
    	return nil
    }
    
    // setHandle sets the handle for type parameter x
    // (and all its joined type parameters) to h.
    func (u *unifier) setHandle(x *TypeParam, h *Type) {
    	hx := u.handles[x]
    	assert(hx != nil)
    	for y, hy := range u.handles {
    		if hy == hx {
    			u.handles[y] = h
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. pkg/kubelet/cadvisor/helpers_linux.go

    // to its file system label for images.
    type imageFsInfoProvider struct {
    	runtimeEndpoint string
    }
    
    // ImageFsInfoLabel returns the image fs label for the configured runtime.
    // For remote runtimes, it handles additional runtimes natively understood by cAdvisor.
    func (i *imageFsInfoProvider) ImageFsInfoLabel() (string, error) {
    	if detectCrioWorkaround(i) {
    		return cadvisorfs.LabelCrioImages, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:15:53 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/deployment/internal/DefaultDeploymentRegistry.java

                        @Override
                        public T call(BuildOperationContext context) {
                            T handle = objectFactory.newInstance(handleType, params);
                            RegisteredDeployment deployment = RegisteredDeployment.create(name, changeBehavior, continuousExecutionGate, handle);
                            handle.start(deployment.getDeployment());
                            if (pendingChanges.hasRemainingChanges()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top