Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 470 for Handles (0.62 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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. subprojects/core/src/main/java/org/gradle/api/internal/project/CrossProjectModelAccess.java

         */
        GradleInternal gradleInstanceForProject(ProjectInternal referrerProject, GradleInternal gradle);
    
        /**
         * Provides an implementation of a tracker that handles the usages of TaskDependency API in the context
         * of the current project. The tracker checks that the usages for possible violation of cross-project model access restriction.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 04:11:36 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. pkg/proxy/node.go

    		klog.FlushAndExit(klog.ExitFlushTimeout, 1)
    	}
    }
    
    // OnNodeDelete is a handler for Node deletes.
    func (n *NodePodCIDRHandler) OnNodeDelete(node *v1.Node) {
    	n.logger.Error(nil, "Current Node is being deleted", "node", klog.KObj(node))
    }
    
    // OnNodeSynced is a handler for Node syncs.
    func (n *NodePodCIDRHandler) OnNodeSynced() {}
    
    // NodeEligibleHandler handles the life cycle of the Node's eligibility, as
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/DaemonJavaCompilerIntegrationTest.groovy

                        }
                    }
                }
            """
    
            expect:
            succeeds "compileJava"
        }
    
        def "handles -sourcepath being specified"() {
            goodCode()
            buildFile << """
                tasks.withType(JavaCompile) {
                    options.sourcepath = project.layout.files()
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top