Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 44 for addUint32 (0.39 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/time/sleep_test.go

    				if late < 0 {
    					late = 0
    				}
    				stats[j].count++
    				stats[j].sum += float64(late.Nanoseconds())
    				if late > stats[j].max {
    					stats[j].max = late
    				}
    				atomic.AddInt32(&count, 1)
    				for atomic.LoadInt32(&count) < int32(timerCount) {
    					// spin until all timers fired
    				}
    				wg.Done()
    			})
    		}
    
    		for atomic.LoadInt32(&count) < int32(timerCount) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/ptr_test.go

    	// after testOne finishes.
    	var pending int32
    	for _, pt := range ptrTests {
    		pt := pt
    		t.Run(pt.name, func(t *testing.T) {
    			atomic.AddInt32(&pending, +1)
    			defer func() {
    				if atomic.AddInt32(&pending, -1) == 0 {
    					os.RemoveAll(dir)
    				}
    			}()
    			testOne(t, pt, exe, exe2)
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/testdata/arithBoundary_test.go

    			t.Errorf("mul_uint32 %d*%d = %d, wanted %d\n", v.a, v.b, got, v.mul)
    		}
    	}
    	for _, v := range int32_data {
    		if got := add_int32_ssa(v.a, v.b); got != v.add {
    			t.Errorf("add_int32 %d+%d = %d, wanted %d\n", v.a, v.b, got, v.add)
    		}
    		if got := sub_int32_ssa(v.a, v.b); got != v.sub {
    			t.Errorf("sub_int32 %d-%d = %d, wanted %d\n", v.a, v.b, got, v.sub)
    		}
    		if v.b != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 31.3K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/types.go

    // Add adds delta to i atomically, returning
    // the new updated value.
    //
    // This operation wraps around in the usual
    // two's-complement way.
    //
    //go:nosplit
    func (i *Int32) Add(delta int32) int32 {
    	return Xaddint32(&i.value, delta)
    }
    
    // Int64 is an atomically accessed int64 value.
    //
    // 8-byte aligned on all platforms, unlike a regular int64.
    //
    // An Int64 must not be copied.
    type Int64 struct {
    	noCopy noCopy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. pkg/scheduler/schedule_one.go

    		if status.Code() == framework.Error {
    			errCh.SendErrorWithCancel(status.AsError(), cancel)
    			return
    		}
    		if status.IsSuccess() {
    			length := atomic.AddInt32(&feasibleNodesLen, 1)
    			if length > numNodesToFind {
    				cancel()
    				atomic.AddInt32(&feasibleNodesLen, -1)
    			} else {
    				feasibleNodes[length-1] = nodeInfo
    			}
    		} else {
    			result[i] = &nodeStatus{node: nodeInfo.Node().Name, status: status}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  10. src/net/http/clientserver_test.go

    			time.Sleep(10 * time.Millisecond)
    			rc, err := net.Dial("tcp", addr)
    			if err != nil {
    				return nil, err
    			}
    			atomic.AddInt32(&numOpen, 1)
    			c := noteCloseConn{rc, func() { atomic.AddInt32(&numClose, 1) }}
    			return tls.Client(c, tlsConfig), nil
    		},
    	}
    	if err := ExportHttp2ConfigureTransport(tr); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
Back to top