Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 77 for comp2 (0.12 sec)

  1. src/runtime/race/testdata/chan_test.go

    func TestRaceChanSendClose(t *testing.T) {
    	compl := make(chan bool, 2)
    	c := make(chan int, 1)
    	go func() {
    		defer func() {
    			recover()
    			compl <- true
    		}()
    		c <- 1
    	}()
    	go func() {
    		time.Sleep(10 * time.Millisecond)
    		close(c)
    		compl <- true
    	}()
    	<-compl
    	<-compl
    }
    
    func TestRaceChanSendSelectClose(t *testing.T) {
    	compl := make(chan bool, 2)
    	c := make(chan int, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. src/runtime/race/testdata/select_test.go

    	x = 2
    	<-compl
    }
    
    func TestNoRaceSelect2(t *testing.T) {
    	var x int
    	_ = x
    	compl := make(chan bool)
    	c := make(chan bool)
    	c1 := make(chan bool)
    	go func() {
    		select {
    		case <-c:
    		case <-c1:
    		}
    		x = 1
    		compl <- true
    	}()
    	x = 2
    	close(c)
    	runtime.Gosched()
    	<-compl
    }
    
    func TestNoRaceSelect3(t *testing.T) {
    	var x int
    	_ = x
    	compl := make(chan bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 05:25:54 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  3. pkg/kube/multicluster/component.go

    	comp := m.constructor(cluster)
    	m.mu.Lock()
    	defer m.mu.Unlock()
    	m.clusters[cluster.ID] = comp
    	return comp
    }
    
    func (m *Component[T]) clusterUpdated(cluster *Cluster) ComponentConstraint {
    	// Build outside of the lock, in case its slow
    	comp := m.constructor(cluster)
    	old, f := m.clusters[cluster.ID]
    	m.mu.Lock()
    	m.clusters[cluster.ID] = comp
    	m.mu.Unlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenGradleModuleMetadataPublishIntegrationTest.groovy

                version = '1.0'
    
                def comp = new TestComponent()
                comp.usages.add(new TestUsage(
                        name: 'api',
                        usage: objects.named(Usage, 'api'),
                        dependencies: configurations.implementation.allDependencies,
                        attributes: testAttributes))
    
                comp.usages.add(new TestUsage(
                        name: 'impl',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 07:21:42 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/jvm/component/internal/DefaultJvmSoftwareComponentIntegrationTest.groovy

                components {
                    thing(JvmSoftwareComponentInternal)
                    comp(JvmSoftwareComponentInternal)
                }
    
                task verify {
                    assert components.thing instanceof DefaultJvmSoftwareComponent
                    assert components.comp instanceof DefaultJvmSoftwareComponent
                }
            """
    
            expect:
            succeeds "verify"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 21:18:02 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/MissingLocalArtifactMetadataTest.groovy

            withClassifier.toString() == "name-classifier.ext (<comp>)"
    
            def noExtension = localArtifactIdentifier(componentId, "name", "type", null, 'classifier')
            noExtension.displayName == "name-classifier (<comp>)"
            noExtension.toString() == "name-classifier (<comp>)"
        }
    
        def "is equal when all attributes and module version are the same"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. src/net/file_plan9.go

    		}
    	}
    
    	path, err := syscall.Fd2path(int(f.Fd()))
    	if err != nil {
    		return nil, os.NewSyscallError("fd2path", err)
    	}
    	comp := splitAtBytes(path, "/")
    	n := len(comp)
    	if n < 3 || comp[0][0:3] != "net" {
    		return nil, syscall.EPLAN9
    	}
    
    	name := comp[2]
    	switch file := comp[n-1]; file {
    	case "ctl", "clone":
    		fd, err := syscall.Dup(int(f.Fd()), -1)
    		if err != nil {
    			return nil, os.NewSyscallError("dup", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/version/version.go

    		semver:     semver,
    	}
    	for i, comp := range components {
    		if (i == 0 || semver) && strings.HasPrefix(comp, "0") && comp != "0" {
    			return nil, fmt.Errorf("illegal zero-prefixed version component %q in %q", comp, str)
    		}
    		num, err := strconv.ParseUint(comp, 10, 0)
    		if err != nil {
    			return nil, fmt.Errorf("illegal non-numeric version component %q in %q: %v", comp, str, err)
    		}
    		v.components[i] = uint(num)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 19:25:29 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/GradleModuleMetadata.groovy

        }
    
        @Nullable
        Coords getComponent() {
            def comp = values.component
            if (comp == null || comp.url) {
                return null
            }
            return new Coords(comp.group, comp.module, comp.version)
        }
    
        @Nullable
        ModuleReference getOwner() {
            def comp = values.component
            if (comp == null || !comp.url) {
                return null
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          for (String comp : components) {
            if (sb.length() > 0) {
              sb.append(DELIMITER_STRING);
            }
            sb.append(comp);
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.9K bytes
    - Viewed (0)
Back to top