- Sort Score
- Result 10 results
- Languages All
Results 31 - 39 of 39 for addUint32 (0.26 sec)
-
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) -
src/cmd/cgo/internal/testerrors/ptr_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:49 UTC 2023 - 21.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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)