type sync.Mutex

170 uses

	sync (current package)
		mutex.go#L30: type Mutex struct {
		mutex.go#L45: func (m *Mutex) Lock() {
		mutex.go#L54: func (m *Mutex) TryLock() bool {
		mutex.go#L64: func (m *Mutex) Unlock() {
		once.go#L29: 	m    Mutex
		pool.go#L285: 	allPoolsMu Mutex
		rwmutex.go#L40: 	w           Mutex        // held if there are pending writers

	context
		context.go#L435: 	mu       sync.Mutex            // protects following fields

	crypto/tls
		common.go#L1631: var writerMutex sync.Mutex
		common.go#L1687: 	sync.Mutex
		conn.go#L39: 	handshakeMutex sync.Mutex
		conn.go#L170: 	sync.Mutex

	database/sql
		closemu.go#L22: 	mu    sync.Mutex
		sql.go#L522: 	mu           sync.Mutex    // protects following fields
		sql.go#L568: 	sync.Mutex  // guards following
		sql.go#L2201: 		sync.Mutex
		sql.go#L2632: 	mu     sync.Mutex // protects the rest of the fields

	github.com/jackc/pgx/v5/pgconn
		pgconn.go#L96: 	bufferingReceiveMux sync.Mutex

	github.com/jackc/pgx/v5/pgconn/ctxwatch
		context_watcher.go#L14: 	lock sync.Mutex

	github.com/jackc/pgx/v5/pgconn/internal/bgreader
		bgreader.go#L136: 			L: &sync.Mutex{},

	github.com/jackc/pgx/v5/pgproto3
		trace.go#L18: 	mux sync.Mutex

	github.com/jackc/pgx/v5/pgxpool
		pool.go#L100: 	healthCheckMu    sync.Mutex

	github.com/jackc/puddle/v2
		pool.go#L123: 	mux sync.Mutex

	go.pact.im/x/clock
		ticker.go#L62: 	mu sync.Mutex

	go.pact.im/x/clock/fakeclock
		fakeclock.go#L39: 	mu    sync.Mutex

	go.pact.im/x/clock/observeclock
		observeclock.go#L26: 	mu sync.Mutex

	go.pact.im/x/httptrack
		stats.go#L123: 	mu    sync.Mutex

	go.pact.im/x/process
		process.go#L51: 	stateMu sync.Mutex

	go.pact.im/x/supervisor
		group.go#L16: 	mu   sync.Mutex
		interrupt.go#L14: 	stopMu  sync.Mutex

	go.uber.org/mock/gomock
		callset.go#L29: 	expectedMu *sync.Mutex
		callset.go#L45: 		expectedMu: &sync.Mutex{},
		callset.go#L53: 		expectedMu:    &sync.Mutex{},
		controller.go#L75: 	mu            sync.Mutex

	go.uber.org/zap/zapcore
		buffered_write_syncer.go#L103: 	mu          sync.Mutex
		write_syncer.go#L50: 	sync.Mutex

	go/constant
		value.go#L92: 		mu   sync.Mutex

	go/token
		position.go#L110: 	mutex sync.Mutex

	go/types
		context.go#L45: 	mu        sync.Mutex
		named.go#L116: 	mu         sync.Mutex     // guards all fields below

	golang.org/x/net/http2
		pipe.go#L17: 	mu       sync.Mutex
		transport_wrap.go#L135: 	dialMu sync.Mutex
		transport_wrap.go#L166: 	mu       sync.Mutex
		transport_wrap.go#L401: 	mu            sync.Mutex

	golang.org/x/net/internal/httpcommon
		gzip.go#L30: 	mu   sync.Mutex    // guards zr and zerr

	golang.org/x/sync/semaphore
		semaphore.go#L34: 	mu      sync.Mutex

	golang.org/x/sys/unix
		syscall_unix.go#L99: 	sync.Mutex

	golang.org/x/tools/go/packages
		packages.go#L708: 	parseCacheMu   sync.Mutex
		packages.go#L709: 	exportMu       sync.Mutex // enforces mutual exclusion of exportdata operations

	golang.org/x/tools/go/types/objectpath
		objectpath.go#L129: 	pkgIndexMu sync.Mutex

	golang.org/x/tools/go/types/typeutil
		methodsetcache.go#L18: 	mu     sync.Mutex

	golang.org/x/tools/internal/gcimporter
		predeclared.go#L17: var predeclMu sync.Mutex

	google.golang.org/grpc
		balancer_wrapper.go#L77: 	mu     sync.Mutex
		balancer_wrapper.go#L275: 	producersMu sync.Mutex
		balancer_wrapper.go#L279: 	healthMu sync.Mutex
		clientconn.go#L597: 	mu         sync.Mutex
		clientconn.go#L706: 	lceMu               sync.Mutex // protects lastConnectionError
		clientconn.go#L1261: 	mu      sync.Mutex
		clientconn.go#L1753: 	mu     sync.Mutex
		resolver_wrapper.go#L48: 	mu       sync.Mutex
		server.go#L132: 	mu  sync.Mutex // guards following
		stream.go#L606: 	mu                      sync.Mutex
		stream.go#L649: 	mu sync.Mutex // guards trInfo.tr
		stream.go#L1411: 	mu       sync.Mutex
		stream.go#L1663: 	mu sync.Mutex // protects trInfo.tr after the service handler runs.
		trace.go#L77: 	mu         sync.Mutex

	google.golang.org/grpc/balancer/endpointsharding
		endpointsharding.go#L102: 	childMu  sync.Mutex
		endpointsharding.go#L114: 	mu sync.Mutex

	google.golang.org/grpc/balancer/pickfirst
		pickfirst.go#L196: 	mu sync.Mutex

	google.golang.org/grpc/internal/balancer/gracefulswitch
		gracefulswitch.go#L59: 	mu              sync.Mutex
		gracefulswitch.go#L69: 	currentMu sync.Mutex

	google.golang.org/grpc/internal/binarylog
		sink.go#L89: 	mu             sync.Mutex

	google.golang.org/grpc/internal/buffer
		unbounded.go#L43: 	mu      sync.Mutex

	google.golang.org/grpc/internal/channelz
		trace.go#L93: 	mu       sync.Mutex

	google.golang.org/grpc/internal/grpcsync
		pubsub.go#L50: 	mu          sync.Mutex

	google.golang.org/grpc/internal/resolver/delegatingresolver
		delegatingresolver.go#L60: 	mu                  sync.Mutex         // protects all the fields below
		delegatingresolver.go#L66: 	childMu        sync.Mutex

	google.golang.org/grpc/internal/transport
		bdp_estimator.go#L53: 	mu sync.Mutex
		controlbuf.go#L313: 	mu              sync.Mutex
		flowcontrol.go#L120: 	mu sync.Mutex
		handler_server.go#L165: 	writeStatusMu sync.Mutex
		http2_client.go#L126: 	mu            sync.Mutex // guard the following variables
		http2_server.go#L109: 	mu sync.Mutex // guard the following
		http2_server.go#L134: 	maxStreamMu sync.Mutex
		http_util.go#L414: var ioBufferMutex sync.Mutex
		server_stream.go#L48: 	hdrMu      sync.Mutex
		transport.go#L72: 	mu      sync.Mutex

	google.golang.org/protobuf/internal/filedesc
		desc.go#L59: 		mu   sync.Mutex // protects L2

	google.golang.org/protobuf/internal/impl
		checkinit.go#L119: 	needsInitCheckMu  sync.Mutex
		codec_extension.go#L66: 	mu         sync.Mutex
		extension.go#L36: 	mu   sync.Mutex
		legacy_message.go#L156: 	aberrantMessageDescLock  sync.Mutex
		message.go#L39: 	initMu   sync.Mutex // protects all unexported fields

	google.golang.org/protobuf/internal/pragma
		pragma.go#L29: type DoNotCopy [0]sync.Mutex

	html/template
		template.go#L39: 	mu      sync.Mutex

	internal/bisect
		bisect.go#L742: 	mu sync.Mutex

	internal/godebug
		godebug.go#L228: var updateMu sync.Mutex

	internal/singleflight
		singleflight.go#L30: 	mu sync.Mutex       // protects m

	internal/testlog
		exit.go#L27: 	mu  sync.Mutex

	io
		pipe.go#L17: 	sync.Mutex // guards following
		pipe.go#L40: 	wrMu sync.Mutex // Serializes Write operations

	log
		log.go#L58: 	outMu sync.Mutex

	log/slog
		handler.go#L202: 	mu          *sync.Mutex
		json_handler.go#L40: 			mu:   &sync.Mutex{},
		text_handler.go#L37: 			mu:   &sync.Mutex{},

	math/big
		natconv.go#L486: 	sync.Mutex

	math/rand
		rand.go#L359: 	mu sync.Mutex
		rand.go#L511: 	lk sync.Mutex

	mime
		type.go#L21: 	extensionsMu sync.Mutex // Guards stores (but not loads) on extensions.

	net
		hosts.go#L33: 	sync.Mutex
		nss.go#L29: 	mu      sync.Mutex // protects nssConf
		pipe.go#L16: 	mu     sync.Mutex // Guards timer and cancel
		pipe.go#L88: 	wrMu sync.Mutex // Serialize Write operations

	net/http
		clientconn.go#L24: 	stateHookMu      sync.Mutex
		server.go#L303: 	mu sync.Mutex
		server.go#L444: 	writeContinueMu  sync.Mutex
		server.go#L494: 	lazyCloseNotifyMu sync.Mutex
		server.go#L706: 	mu      sync.Mutex // guards following
		server.go#L3201: 	mu            sync.Mutex
		server.go#L4116: 	mu          sync.Mutex
		server.go#L4236: 	uniqNameMu   sync.Mutex
		transfer.go#L833: 	mu          sync.Mutex // guards following, and calls to Read and Close
		transport.go#L99: 	idleMu       sync.Mutex
		transport.go#L105: 	reqMu       sync.Mutex
		transport.go#L108: 	altMu    sync.Mutex   // guards changing altProto only
		transport.go#L111: 	connsPerHostMu   sync.Mutex
		transport.go#L542: 	mu  sync.Mutex // guards err
		transport.go#L1406: 	mu        sync.Mutex      // protects ctx, done and sending of the result
		transport.go#L2274: 	mu                   sync.Mutex // guards following fields
		transport.go#L3240: 	mu           sync.Mutex        // guards following 4 fields
		transport.go#L3313: 	mu   sync.Mutex     // guards zr and zerr

	net/http/httputil
		persist.go#L38: 	mu              sync.Mutex // read-write protects the following fields
		persist.go#L231: 	mu              sync.Mutex // read-write protects the following fields
		reverseproxy.go#L543: 		roundTripMutex sync.Mutex
		reverseproxy.go#L771: 	mu           sync.Mutex // protects t, flushPending, and dst.Flush

	net/http/internal/http2
		client_conn_pool.go#L21: 	mu sync.Mutex // TODO: maybe switch to RWMutex
		pipe.go#L17: 	mu       sync.Mutex
		server.go#L87: 	testHookOnPanicMu *sync.Mutex // nil except in tests
		server.go#L93: 	mu          sync.Mutex
		server.go#L2512: 	closeNotifierMu sync.Mutex // guards closeNotifierCh
		transport.go#L147: 	mu               sync.Mutex  // guards following
		transport.go#L218: 	wmu  sync.Mutex
		transport.go#L3006: 	mu   sync.Mutex    // guards zr and zerr

	net/textproto
		pipeline.go#L29: 	mu       sync.Mutex
		pipeline.go#L73: 	mu   sync.Mutex

	os
		dir_unix.go#L21: 	mu   sync.Mutex
		getwd.go#L14: 	sync.Mutex
		root_openat.go#L26: 	mu     sync.Mutex

	reflect
		type.go#L1810: 	sync.Mutex // Guards stores (but not loads) on m.
		type.go#L1881: var funcTypesMutex sync.Mutex
		type.go#L2168: 	sync.Mutex // Guards stores (but not loads) on m.
		type.go#L2788: var pinAIXGCDataMu sync.Mutex

	runtime/pprof
		pprof.go#L175: 	mu    sync.Mutex
		pprof.go#L183: 	mu sync.Mutex
		pprof.go#L252: var goroutineLeakProfileLock sync.Mutex
		pprof.go#L869: 	sync.Mutex

	runtime/trace
		flightrecorder.go#L31: 	ringMu sync.Mutex
		flightrecorder.go#L40: 	writing sync.Mutex // protects concurrent calls to WriteTo
		subscribe.go#L20: 	sync.Mutex
		subscribe.go#L24: 	subscribersMu    sync.Mutex

	syscall
		forkpipe2.go#L19: 	forkingLock sync.Mutex
		syscall_unix.go#L44: 	sync.Mutex

	testing
		benchmark.go#L69: var benchmarkLock sync.Mutex
		match.go#L21: 	mu sync.Mutex
		match.go#L49: var matchMutex sync.Mutex
		testing.go#L581: 	lastNameMu sync.Mutex // guards lastName
		testing.go#L732: 	tempDirMu  sync.Mutex
		testing.go#L2345: 	mu sync.Mutex

	unique
		canonmap.go#L290: 	mu       sync.Mutex // Protects mutation to children and any children that are entry nodes.

	uuid
		uuid.go#L198: 	v7mu            sync.Mutex