Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 134 for runN (0.06 sec)

  1. src/runtime/proc.go

    	for !q.empty() && t-h < uint32(len(pp.runq)) {
    		gp := q.pop()
    		pp.runq[t%uint32(len(pp.runq))].set(gp)
    		t++
    		n++
    	}
    	qsize -= int(n)
    
    	if randomizeScheduler {
    		off := func(o uint32) uint32 {
    			return (pp.runqtail + o) % uint32(len(pp.runq))
    		}
    		for i := uint32(1); i < n; i++ {
    			j := cheaprandn(i + 1)
    			pp.runq[off(i)], pp.runq[off(j)] = pp.runq[off(j)], pp.runq[off(i)]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  2. src/reflect/value.go

    func cvtIntString(v Value, t Type) Value {
    	s := "\uFFFD"
    	if x := v.Int(); int64(rune(x)) == x {
    		s = string(rune(x))
    	}
    	return makeString(v.flag.ro(), s, t)
    }
    
    // convertOp: uintXX -> string
    func cvtUintString(v Value, t Type) Value {
    	s := "\uFFFD"
    	if x := v.Uint(); uint64(rune(x)) == x {
    		s = string(rune(x))
    	}
    	return makeString(v.flag.ro(), s, t)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    Converting a slice of runes to a string type yields
    a string that is the concatenation of the individual rune values
    converted to strings.
    
    <pre>
    string([]rune{0x767d, 0x9d6c, 0x7fd4})   // "\u767d\u9d6c\u7fd4" == "白鵬翔"
    string([]rune{})                         // ""
    string([]rune(nil))                      // ""
    
    type MyRunes []rune
    string(MyRunes{0x767d, 0x9d6c, 0x7fd4})  // "\u767d\u9d6c\u7fd4" == "白鵬翔"
    </pre>
    </li>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/exec.go

    				b.cacheObjdirFile(a, cache.Default(), ba.covMetaFileName)
    			}
    		}
    	}
    
    	// Run SWIG on each .swig and .swigcxx file.
    	// Each run will generate two files, a .go file and a .c or .cxx file.
    	// The .go file will use import "C" and is to be processed by cgo.
    	// For -cover test or build runs, this needs to happen after the cover
    	// tool is run; we don't want to instrument swig-generated Go files,
    	// see issue #64661.
    	if p.UsesSwig() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  5. src/net/http/serve_test.go

    	const chunkedMode = true
    	run(t, func(t *testing.T, mode testMode) {
    		t.Run("identity", func(t *testing.T) { testHeadBody(t, mode, identityMode, "HEAD") })
    		t.Run("chunked", func(t *testing.T) { testHeadBody(t, mode, chunkedMode, "HEAD") })
    	})
    }
    
    func TestGetBody(t *testing.T) {
    	const identityMode = false
    	const chunkedMode = true
    	run(t, func(t *testing.T, mode testMode) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  6. src/net/http/transport_test.go

    func runCancelTest(t *testing.T, f func(t *testing.T, test cancelTest), opts ...any) {
    	run(t, func(t *testing.T, mode testMode) {
    		if mode == http1Mode {
    			t.Run("TransportCancel", func(t *testing.T) {
    				runCancelTestTransport(t, mode, f)
    			})
    		}
    		t.Run("RequestCancel", func(t *testing.T) {
    			runCancelTestChannel(t, mode, f)
    		})
    		t.Run("ContextCancel", func(t *testing.T) {
    			runCancelTestContext(t, mode, f)
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformCachingIntegrationTest.groovy

                    }
                }
            """
    
            when:
            run(":app:toBeFinalized", "withDependency")
    
            def lib1Message = "Transforming lib1.jar with MakeGreen"
            def lib2Message = "Transforming lib2.jar with MakeGreen"
    
            then:
            if (!GradleContextualExecuter.configCache) {
                // Only runs once, as the transform execution in-memory cache is not discarded prior to execution time
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:52:44 UTC 2024
    - 97.8K bytes
    - Viewed (0)
  8. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/DependencyInsightReportTaskIntegrationTest.groovy

                }
                configurations {
                    conf
                }
                dependencies {
                    conf 'org:top:1.0'
                }
            """
    
            when:
            run "dependencyInsight", "--dependency", "unknown"
    
            then:
            outputContains """
    No dependencies matching given input were found in configuration ':compileClasspath'
    """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 15:15:56 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

              @Override
              public void run() {}
            };
        final Runnable finishSuccess =
            new Runnable() {
              @Override
              public void run() {
                delayedSuccess.set("b");
              }
            };
        final Runnable finishFailure =
            new Runnable() {
              @Override
              public void run() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

              @Override
              public void run() {}
            };
        final Runnable finishSuccess =
            new Runnable() {
              @Override
              public void run() {
                delayedSuccess.set("b");
              }
            };
        final Runnable finishFailure =
            new Runnable() {
              @Override
              public void run() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
Back to top