Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 121 for addUint32 (0.22 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Value).CompareAndSwap", Method, 17},
    		{"(*Value).Load", Method, 4},
    		{"(*Value).Store", Method, 4},
    		{"(*Value).Swap", Method, 17},
    		{"AddInt32", Func, 0},
    		{"AddInt64", Func, 0},
    		{"AddUint32", Func, 0},
    		{"AddUint64", Func, 0},
    		{"AddUintptr", Func, 0},
    		{"Bool", Type, 19},
    		{"CompareAndSwapInt32", Func, 0},
    		{"CompareAndSwapInt64", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  2. 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)
  3. src/net/http/client_test.go

    	readCalls  *int32
    	closeCalls *int32
    	readErr    error
    }
    
    func (b issue18239Body) Read([]byte) (int, error) {
    	atomic.AddInt32(b.readCalls, 1)
    	return 0, b.readErr
    }
    
    func (b issue18239Body) Close() error {
    	atomic.AddInt32(b.closeCalls, 1)
    	return nil
    }
    
    // Issue 18239: make sure the Transport doesn't retry requests with bodies
    // if Request.GetBody is not defined.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  4. 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)
  5. pkg/scheduler/framework/preemption/preemption.go

    	return &candidateList{idx: -1, items: make([]Candidate, size)}
    }
    
    // add adds a new candidate to the internal array atomically.
    func (cl *candidateList) add(c *candidate) {
    	if idx := atomic.AddInt32(&cl.idx, 1); idx < int32(len(cl.items)) {
    		cl.items[idx] = c
    	}
    }
    
    // size returns the number of candidate stored. Note that some add() operations
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    	})
    }
    
    func (s *xlStorage) NSScanner(ctx context.Context, cache dataUsageCache, updates chan<- dataUsageEntry, scanMode madmin.HealScanMode, weSleep func() bool) (dataUsageCache, error) {
    	atomic.AddInt32(&s.scanning, 1)
    	defer atomic.AddInt32(&s.scanning, -1)
    
    	var err error
    	stopFn := globalScannerMetrics.log(scannerMetricScanBucketDrive, s.drivePath, cache.Info.Name)
    	defer func() {
    		res := make(map[string]string)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  7. src/net/lookup_test.go

    		// We'll block until this is called one time for each different
    		// expected result. This will ensure that the lookup group would wait
    		// for the existing call if it was to be reused.
    		if atomic.AddInt32(&calls, 1) == int32(len(results)) {
    			close(waitCh)
    		}
    		select {
    		case <-waitCh:
    		case <-ctx.Done():
    			return nil, ctx.Err()
    		}
    		return results[[2]string{network, host}], nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go

    	disabled     bool
    	keyVersion   string
    	ciphertext   []byte
    	decryptCalls int32
    }
    
    func (t *testEnvelopeService) Decrypt(ctx context.Context, uid string, req *kmsservice.DecryptRequest) ([]byte, error) {
    	atomic.AddInt32(&t.decryptCalls, 1)
    	if t.disabled {
    		return nil, fmt.Errorf("Envelope service was disabled")
    	}
    	if len(uid) == 0 {
    		return nil, fmt.Errorf("uid is required")
    	}
    	if len(req.KeyID) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:50:20 UTC 2023
    - 47.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/wait/wait_test.go

    		go func() {
    			defer doneFunc()
    			defer close(ch)
    			for i := 0; i < max; i++ {
    				select {
    				case ch <- struct{}{}:
    				case <-done:
    					return
    				}
    				if used != nil {
    					atomic.AddInt32(used, 1)
    				}
    			}
    		}()
    		return ch
    	}
    }
    
    func (fp *fakePoller) GetwaitFunc() waitFunc {
    	fp.wg.Add(1)
    	return fakeTicker(fp.max, &fp.used, fp.wg.Done)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  10. src/net/http/serve_test.go

    func testServerEmptyBodyRace(t *testing.T, mode testMode) {
    	var n int32
    	cst := newClientServerTest(t, mode, HandlerFunc(func(rw ResponseWriter, req *Request) {
    		atomic.AddInt32(&n, 1)
    	}), optQuietLog)
    	var wg sync.WaitGroup
    	const reqs = 20
    	for i := 0; i < reqs; i++ {
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			res, err := cst.c.Get(cst.ts.URL)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top