Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for addUint32 (0.21 sec)

  1. src/sync/atomic/doc.go

    // AddInt32 atomically adds delta to *addr and returns the new value.
    // Consider using the more ergonomic and less error-prone [Int32.Add] instead.
    func AddInt32(addr *int32, delta int32) (new int32)
    
    // AddUint32 atomically adds delta to *addr and returns the new value.
    // To subtract a signed positive constant value c from x, do AddUint32(&x, ^uint32(c-1)).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. internal/http/listener_test.go

    rr3DRiUP6V/10CZ/ImeSJ72k69VuTw9vq2HzB4x6pqxF2X7JQSLUCS2wfNN13N0d
    9A==
    -----END CERTIFICATE-----`)
    
    	return tls.X509KeyPair(certPEMBlock, keyPEMBlock)
    }
    
    func getNextPort() string {
    	return strconv.Itoa(int(atomic.AddUint32(&serverPort, 1)))
    }
    
    func getNonLoopBackIP(t *testing.T) string {
    	localIP4 := set.NewStringSet()
    	addrs, err := net.InterfaceAddrs()
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. src/net/http/transport_test.go

    	tr.Dial = func(network, addr string) (net.Conn, error) {
    		atomic.AddInt32(&dialCnt, 1)
    		c, err := net.Dial(network, addr)
    		mu.Lock()
    		defer mu.Unlock()
    		conns = append(conns, c)
    		return c, err
    	}
    
    	doReq := func() {
    		trace := &httptrace.ClientTrace{
    			GotConn: func(connInfo httptrace.GotConnInfo) {
    				if !connInfo.Reused {
    					atomic.AddInt32(&gotConnCnt, 1)
    				}
    			},
    			TLSHandshakeStart: func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/data.go

    			target.Arch.ByteOrder.PutUint64(P[off:], uint64(o))
    		}
    	}
    	if target.IsExternal() {
    		// We'll stream out the external relocations in asmb2 (e.g. elfrelocsect)
    		// and we only need the count here.
    		atomic.AddUint32(&ldr.SymSect(s).Relcount, uint32(nExtReloc))
    	}
    }
    
    // Convert a Go relocation to an external relocation.
    func extreloc(ctxt *Link, ldr *loader.Loader, s loader.Sym, r loader.Reloc) (loader.ExtReloc, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  5. api/go1.23.txt

    pkg structs, type HostLayout struct #66408
    pkg sync, method (*Map) Clear() #61696
    pkg sync/atomic, func AndInt32(*int32, int32) int32 #61395
    pkg sync/atomic, func AndInt64(*int64, int64) int64 #61395
    pkg sync/atomic, func AndUint32(*uint32, uint32) uint32 #61395
    pkg sync/atomic, func AndUint64(*uint64, uint64) uint64 #61395
    pkg sync/atomic, func AndUintptr(*uintptr, uintptr) uintptr #61395
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/sync/mutex.go

    					// Starvation mode is so inefficient, that two goroutines
    					// can go lock-step infinitely once they switch mutex
    					// to starvation mode.
    					delta -= mutexStarving
    				}
    				atomic.AddInt32(&m.state, delta)
    				break
    			}
    			awoke = true
    			iter = 0
    		} else {
    			old = m.state
    		}
    	}
    
    	if race.Enabled {
    		race.Acquire(unsafe.Pointer(m))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/sync/rwmutex.go

    // - RUnlock -> Lock:  writerSem
    //
    // The methods below temporarily disable handling of race synchronization
    // events in order to provide the more precise model above to the race
    // detector.
    //
    // For example, atomic.AddInt32 in RLock should not appear to provide
    // acquire-release semantics, which would incorrectly synchronize racing
    // readers, thus potentially missing races.
    
    // RLock locks rw for reading.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssagen/ssa.go

    	alias("sync/atomic", "CompareAndSwapUintptr", "internal/runtime/atomic", "Cas64", p8...)
    
    	alias("sync/atomic", "AddInt32", "internal/runtime/atomic", "Xadd", all...)
    	alias("sync/atomic", "AddInt64", "internal/runtime/atomic", "Xadd64", all...)
    	alias("sync/atomic", "AddUint32", "internal/runtime/atomic", "Xadd", all...)
    	alias("sync/atomic", "AddUint64", "internal/runtime/atomic", "Xadd64", all...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  9. pkg/controller/job/job_controller.go

    						logger.V(2).Info("Failed creation, decrementing expectations", "job", klog.KObj(job))
    						jm.expectations.CreationObserved(logger, jobKey)
    						atomic.AddInt32(&active, -1)
    						errCh <- err
    						atomic.AddInt32(&creationsFailed, 1)
    					}
    					atomic.AddInt32(&creationsSucceeded, 1)
    				}()
    			}
    			wait.Wait()
    			// any skipped pods that we never attempted to start shouldn't be expected.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  10. cmd/bucket-replication.go

    				return
    			}
    			switch v := oi.(type) {
    			case ReplicateObjectInfo:
    				globalReplicationStats.incQ(v.Bucket, v.Size, v.DeleteMarker, v.OpType)
    				atomic.AddInt32(&p.activeMRFWorkers, 1)
    				replicateObject(p.ctx, v, p.objLayer)
    				atomic.AddInt32(&p.activeMRFWorkers, -1)
    				globalReplicationStats.decQ(v.Bucket, v.Size, v.DeleteMarker, v.OpType)
    
    			default:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
Back to top