Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for atomics (0.14 sec)

  1. src/runtime/proc.go

    	// only via lockextra/unlockextra.
    	//
    	// Can't be atomic.Pointer[m] because we use an invalid pointer as a
    	// "locked" sentinel value. M's on this list remain visible to the GC
    	// because their mp.curg is on allgs.
    	extraM atomic.Uintptr
    	// Number of M's in the extraM list.
    	extraMLength atomic.Uint32
    	// Number of waiters in lockextra.
    	extraMWaiters atomic.Uint32
    
    	// Number of extra M's in use by threads.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/go/internal/load/pkg.go

    			continue
    		}
    
    		// Silently ignore attempts to run coverage on sync/atomic
    		// and/or internal/runtime/atomic when using atomic coverage
    		// mode. Atomic coverage mode uses sync/atomic, so we can't
    		// also do coverage on it.
    		if cfg.BuildCoverMode == "atomic" && p.Standard &&
    			(p.ImportPath == "sync/atomic" || p.ImportPath == "internal/runtime/atomic") {
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  4. src/net/http/server.go

    	bufw *bufio.Writer
    
    	// lastMethod is the method of the most recent request
    	// on this connection, if any.
    	lastMethod string
    
    	curReq atomic.Pointer[response] // (which has a Request in it)
    
    	curState atomic.Uint64 // packed (unixtime<<8|uint8(ConnState))
    
    	// mu guards hijackedv
    	mu sync.Mutex
    
    	// hijackedv is whether this connection has been hijacked
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  5. src/database/sql/sql.go

    type DB struct {
    	// Total time waited for new connections.
    	waitDuration atomic.Int64
    
    	connector driver.Connector
    	// numClosed is an atomic counter which represents a total number of
    	// closed connections. Stmt.openStmt checks it before cleaning closed
    	// connections in Stmt.css.
    	numClosed atomic.Uint64
    
    	mu           sync.Mutex    // protects following fields
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  6. 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)
    				}
    			},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_node_status_test.go

    	// should have attempted multiple times
    	if actualAttempts := atomic.LoadInt64(&attempts); actualAttempts < nodeStatusUpdateRetry {
    		t.Errorf("Expected at least %d attempts, got %d", nodeStatusUpdateRetry, actualAttempts)
    	}
    	// should have gotten multiple failure callbacks
    	if actualFailureCallbacks := atomic.LoadInt64(&failureCallbacks); actualFailureCallbacks < (nodeStatusUpdateRetry - 1) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  8. src/net/http/serve_test.go

    }
    
    // countCloseListener is a Listener wrapper that counts the number of Close calls.
    type countCloseListener struct {
    	net.Listener
    	closes int32 // atomic
    }
    
    func (p *countCloseListener) Close() error {
    	var err error
    	if n := atomic.AddInt32(&p.closes, 1); n == 1 && p.Listener != nil {
    		err = p.Listener.Close()
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  9. cmd/metrics-v2.go

    				},
    				Value: float64(atomic.LoadUint64(&globalIAMSys.TotalRefreshSuccesses)),
    			},
    			{
    				Description: MetricDescription{
    					Namespace: nodeMetricNamespace,
    					Subsystem: iamSubsystem,
    					Name:      "sync_failures",
    					Help:      "Number of failed IAM data syncs since server uptime",
    					Type:      counterMetric,
    				},
    				Value: float64(atomic.LoadUint64(&globalIAMSys.TotalRefreshFailures)),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //	-cover
    //		enable code coverage instrumentation.
    //	-covermode set,count,atomic
    //		set the mode for coverage analysis.
    //		The default is "set" unless -race is enabled,
    //		in which case it is "atomic".
    //		The values:
    //		set: bool: does this statement run?
    //		count: int: how many times does this statement run?
    //		atomic: int: count, but correct in multithreaded tests;
    //			significantly more expensive.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top