Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 39 for addUint32 (0.2 sec)

  1. src/cmd/link/internal/ld/macho.go

    func machosymtab(ctxt *Link) {
    	ldr := ctxt.loader
    	symtab := ldr.CreateSymForUpdate(".machosymtab", 0)
    	symstr := ldr.CreateSymForUpdate(".machosymstr", 0)
    
    	for _, s := range sortsym[:nsortsym] {
    		symtab.AddUint32(ctxt.Arch, uint32(symstr.Size()))
    
    		export := machoShouldExport(ctxt, ldr, s)
    
    		// Prefix symbol names with "_" to match the system toolchain.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go

    			watermark.recordMutating(int(atomic.AddInt32(&atomicMutatingExecuting, delta)))
    		} else {
    			watermark.recordReadOnly(int(atomic.AddInt32(&atomicReadOnlyExecuting, delta)))
    		}
    	}
    	noteWaitingDelta := func(delta int32) {
    		if isMutatingRequest {
    			waitingMark.recordMutating(int(atomic.AddInt32(&atomicMutatingWaiting, delta)))
    		} else {
    			waitingMark.recordReadOnly(int(atomic.AddInt32(&atomicReadOnlyWaiting, delta)))
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/check.go

    	if check.conf.EnableAlias {
    		if atomic.AddInt32(&_aliasAny, 1) <= 0 {
    			panic("EnableAlias set while !EnableAlias type checking is ongoing")
    		}
    		defer atomic.AddInt32(&_aliasAny, -1)
    	} else {
    		if atomic.AddInt32(&_aliasAny, -1) >= 0 {
    			panic("!EnableAlias set while EnableAlias type checking is ongoing")
    		}
    		defer atomic.AddInt32(&_aliasAny, 1)
    	}
    
    	print := func(msg string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  4. src/expvar/expvar_test.go

    			keys[j] = fmt.Sprint(i, j)
    		}
    		procKeys[i] = keys
    	}
    
    	m := new(Map).Init()
    	v := new(Int)
    	b.ResetTimer()
    
    	var n int32
    	b.RunParallel(func(pb *testing.PB) {
    		i := int(atomic.AddInt32(&n, 1)-1) % len(procKeys)
    		keys := procKeys[i]
    
    		for pb.Next() {
    			for _, k := range keys {
    				m.Set(k, v)
    			}
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. src/go/types/check.go

    	if check.conf._EnableAlias {
    		if atomic.AddInt32(&_aliasAny, 1) <= 0 {
    			panic("EnableAlias set while !EnableAlias type checking is ongoing")
    		}
    		defer atomic.AddInt32(&_aliasAny, -1)
    	} else {
    		if atomic.AddInt32(&_aliasAny, -1) >= 0 {
    			panic("!EnableAlias set while EnableAlias type checking is ongoing")
    		}
    		defer atomic.AddInt32(&_aliasAny, 1)
    	}
    
    	print := func(msg string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. src/runtime/chan_test.go

    	procs := 2
    	N := int32(b.N / CallsPerSched / procs * procs)
    	c := make(chan bool, procs)
    	myc := make(chan int)
    	for p := 0; p < procs; p++ {
    		go func() {
    			for {
    				i := atomic.AddInt32(&N, -1)
    				if i < 0 {
    					break
    				}
    				for g := 0; g < CallsPerSched; g++ {
    					if i%2 == 0 {
    						<-myc
    						localWork(work)
    						myc <- 0
    						localWork(work)
    					} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  7. src/net/rpc/server_test.go

    	var wg sync.WaitGroup
    	wg.Add(procs)
    	gate := make(chan bool, MaxConcurrentCalls)
    	res := make(chan *Call, MaxConcurrentCalls)
    	b.ResetTimer()
    
    	for p := 0; p < procs; p++ {
    		go func() {
    			for atomic.AddInt32(&send, -1) >= 0 {
    				gate <- true
    				reply := new(Reply)
    				client.Go("Arith.Add", args, reply, res)
    			}
    		}()
    		go func() {
    			for call := range res {
    				A := call.Args.(*Args).A
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 05:23:29 UTC 2023
    - 19K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/interpodaffinity/scoring.go

    		}
    
    		topoScore := make(scoreMap)
    		for _, existingPod := range podsToProcess {
    			pl.processExistingPod(state, existingPod, nodeInfo, pod, topoScore)
    		}
    		if len(topoScore) > 0 {
    			topoScores[atomic.AddInt32(&index, 1)] = topoScore
    		}
    	}
    	pl.parallelizer.Until(pCtx, len(allNodes), processNode, pl.Name())
    
    	if index == -1 {
    		return framework.NewStatus(framework.Skip)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  9. cmd/http-stats.go

    	totalS3Canceled         HTTPAPIStats
    }
    
    func (st *HTTPStats) loadRequestsInQueue() int32 {
    	return atomic.LoadInt32(&st.s3RequestsInQueue)
    }
    
    func (st *HTTPStats) addRequestsInQueue(i int32) {
    	atomic.AddInt32(&st.s3RequestsInQueue, i)
    }
    
    func (st *HTTPStats) incS3RequestsIncoming() {
    	// Golang automatically resets to zero if this overflows
    	atomic.AddUint64(&st.s3RequestsIncoming, 1)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 06:25:13 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. pkg/wasm/cache_test.go

    	tsNumRequest := int32(0)
    
    	httpData := append(wasmHeader, []byte("data")...)
    	invalidHTTPData := []byte("invalid binary")
    	ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		atomic.AddInt32(&tsNumRequest, 1)
    
    		if r.URL.Path == "/different-url" {
    			w.Write(append(httpData, []byte("different data")...))
    		} else if r.URL.Path == "/invalid-wasm-header" {
    			w.Write(invalidHTTPData)
    		} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 33.9K bytes
    - Viewed (0)
Back to top