Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for rwmutex (0.34 sec)

  1. src/database/sql/sql.go

    	cachedOrNewConn
    )
    
    // driverConn wraps a driver.Conn with a mutex, to
    // be held during all calls into the Conn. (including any calls onto
    // interfaces returned via that Conn, such as calls on Tx, Stmt,
    // Result, Rows)
    type driverConn struct {
    	db        *DB
    	createdAt time.Time
    
    	sync.Mutex  // guards following
    	ci          driver.Conn
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  2. cmd/site-replication.go

    }
    
    func wrapSRErr(err error) SRError {
    	return SRError{Cause: err, Code: ErrInternalError}
    }
    
    // SiteReplicationSys - manages cluster-level replication.
    type SiteReplicationSys struct {
    	sync.RWMutex
    
    	enabled bool
    
    	// In-memory and persisted multi-site replication state.
    	state srState
    
    	iamMetaCache srIAMCache
    }
    
    type srState srStateV1
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 184.3K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet.go

    	syncNodeStatusMux sync.Mutex
    
    	// updatePodCIDRMux is a lock on updating pod CIDR, because this path is not thread-safe.
    	// This lock is used by Kubelet.updatePodCIDR function and shouldn't be used anywhere else.
    	updatePodCIDRMux sync.Mutex
    
    	// updateRuntimeMux is a lock on updating runtime, because this path is not thread-safe.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    	// addition to allm. Thus acquiring this lock for write blocks the
    	// creation of new Ms.
    	allocmLock rwmutex
    
    	// execLock serializes exec and clone to avoid bugs or unspecified
    	// behaviour around exec'ing while creating/destroying threads. See
    	// issue #19546.
    	execLock rwmutex
    )
    
    // These errors are reported (via writeErrStr) by some OS-specific
    // versions of newosproc and newosproc0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  5. cmd/bucket-replication.go

    	// atomic ops:
    	activeWorkers    int32
    	activeMRFWorkers int32
    
    	objLayer   ObjectLayer
    	ctx        context.Context
    	priority   string
    	maxWorkers int
    	mu         sync.RWMutex
    	mrfMU      sync.Mutex
    	resyncer   *replicationResyncer
    
    	// workers:
    	workers    []chan ReplicationWorkerOperation
    	lrgworkers []chan ReplicationWorkerOperation
    
    	// mrf:
    	mrfWorkerKillCh chan struct{}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  6. src/net/http/serve_test.go

    // request) that will never happen.
    func TestOnlyWriteTimeout(t *testing.T) { run(t, testOnlyWriteTimeout, []testMode{http1Mode}) }
    func testOnlyWriteTimeout(t *testing.T, mode testMode) {
    	var (
    		mu   sync.RWMutex
    		conn net.Conn
    	)
    	var afterTimeoutErrc = make(chan error, 1)
    	ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, req *Request) {
    		buf := make([]byte, 512<<10)
    		_, err := w.Write(buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  7. src/net/http/server.go

    //     This change mostly affects how paths with %2F escapes adjacent to slashes are treated.
    //     See https://go.dev/issue/21955 for details.
    type ServeMux struct {
    	mu       sync.RWMutex
    	tree     routingNode
    	index    routingIndex
    	patterns []*pattern  // TODO(jba): remove if possible
    	mux121   serveMux121 // used only when GODEBUG=httpmuxgo121=1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  8. src/database/sql/sql_test.go

    		expired  bool
    		badReset bool
    	}{
    		{false, false},
    		{true, false},
    		{false, true},
    	}
    
    	t0 := time.Unix(1000000, 0)
    	offset := time.Duration(0)
    	offsetMu := sync.RWMutex{}
    
    	nowFunc = func() time.Time {
    		offsetMu.RLock()
    		defer offsetMu.RUnlock()
    		return t0.Add(offset)
    	}
    	defer func() { nowFunc = time.Now }()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  9. src/net/http/transport_test.go

    	c.set.remove(c)
    	return c.Conn.Close()
    }
    
    // testConnSet tracks a set of TCP connections and whether they've
    // been closed.
    type testConnSet struct {
    	t      *testing.T
    	mu     sync.Mutex // guards closed and list
    	closed map[net.Conn]bool
    	list   []net.Conn // in order created
    }
    
    func (tcs *testConnSet) insert(c net.Conn) {
    	tcs.mu.Lock()
    	defer tcs.mu.Unlock()
    	tcs.closed[c] = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //	    To profile all memory allocations, use -test.memprofilerate=1.
    //
    //	-mutexprofile mutex.out
    //	    Write a mutex contention profile to the specified file
    //	    when all tests are complete.
    //	    Writes test binary as -c would.
    //
    //	-mutexprofilefraction n
    //	    Sample 1 in n stack traces of goroutines holding a
    //	    contended mutex.
    //
    //	-outputdir directory
    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