type sync.Mutex
150 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#L284: allPoolsMu Mutex
rwmutex.go#L40: w Mutex // held if there are pending writers
context
context.go#L428: mu sync.Mutex // protects following fields
crypto/tls
common.go#L1525: var writerMutex sync.Mutex
common.go#L1576: sync.Mutex
conn.go#L40: handshakeMutex sync.Mutex
conn.go#L172: sync.Mutex
github.com/robfig/cron/v3
chain.go#L63: var mu sync.Mutex
cron.go#L22: runningMu sync.Mutex
cron.go#L122: runningMu: 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.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
sink.go#L59: 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#L107: mutex sync.Mutex
go/types
context.go#L45: mu sync.Mutex
named.go#L121: mu sync.Mutex // guards all fields below
golang.org/x/net/http2
client_conn_pool.go#L45: 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#L215: mu sync.Mutex
server.go#L2621: closeNotifierMu sync.Mutex // guards closeNotifierCh
transport.go#L371: mu sync.Mutex // guards following
transport.go#L429: wmu sync.Mutex
golang.org/x/sys/unix
syscall_unix.go#L99: sync.Mutex
golang.org/x/tools/go/packages
packages.go#L697: parseCacheMu sync.Mutex
packages.go#L698: exportMu sync.Mutex // enforces mutual exclusion of exportdata operations
golang.org/x/tools/go/types/typeutil
methodsetcache.go#L18: mu sync.Mutex
golang.org/x/tools/internal/gcimporter
predeclared.go#L16: var predeclMu sync.Mutex
google.golang.org/grpc
balancer_wrapper.go#L78: mu sync.Mutex
balancer_wrapper.go#L276: producersMu sync.Mutex
balancer_wrapper.go#L280: healthMu sync.Mutex
clientconn.go#L540: mu sync.Mutex
clientconn.go#L648: lceMu sync.Mutex // protects lastConnectionError
clientconn.go#L1205: mu sync.Mutex
clientconn.go#L1596: mu sync.Mutex
resolver_wrapper.go#L48: mu sync.Mutex
server.go#L129: mu sync.Mutex // guards following
stream.go#L567: mu sync.Mutex
stream.go#L610: mu sync.Mutex // guards trInfo.tr
stream.go#L1372: mu sync.Mutex
stream.go#L1615: 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/pickfirstleaf
pickfirstleaf.go#L197: mu sync.Mutex
google.golang.org/grpc/health
producer.go#L60: 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#L56: mu sync.Mutex // protects all the fields below
delegatingresolver.go#L62: childMu sync.Mutex
google.golang.org/grpc/internal/transport
bdp_estimator.go#L53: mu sync.Mutex
controlbuf.go#L318: mu sync.Mutex
flowcontrol.go#L120: mu sync.Mutex
handler_server.go#L165: writeStatusMu sync.Mutex
http2_client.go#L124: mu sync.Mutex // guard the following variables
http2_server.go#L106: mu sync.Mutex // guard the following
http2_server.go#L131: maxStreamMu sync.Mutex
http_util.go#L397: var writeBufferMutex sync.Mutex
server_stream.go#L49: hdrMu sync.Mutex
transport.go#L66: mu sync.Mutex
google.golang.org/protobuf/internal/filedesc
desc.go#L58: 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#L38: 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
math/big
natconv.go#L449: 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
h2_bundle.go#L770: mu sync.Mutex // TODO: maybe switch to RWMutex
h2_bundle.go#L3934: mu sync.Mutex
h2_bundle.go#L4134: http2testHookOnPanicMu *sync.Mutex // nil except in tests
h2_bundle.go#L4262: mu sync.Mutex
h2_bundle.go#L6717: closeNotifierMu sync.Mutex // guards closeNotifierCh
h2_bundle.go#L7793: mu sync.Mutex // guards following
h2_bundle.go#L7850: wmu sync.Mutex
server.go#L302: mu sync.Mutex
server.go#L440: writeContinueMu sync.Mutex
server.go#L657: mu sync.Mutex // guards following
server.go#L3073: mu sync.Mutex
server.go#L3864: mu sync.Mutex
server.go#L3984: uniqNameMu sync.Mutex
transfer.go#L818: mu sync.Mutex // guards following, and calls to Read and Close
transport.go#L97: idleMu sync.Mutex
transport.go#L103: reqMu sync.Mutex
transport.go#L106: altMu sync.Mutex // guards changing altProto only
transport.go#L109: connsPerHostMu sync.Mutex
transport.go#L522: mu sync.Mutex // guards err
transport.go#L1310: mu sync.Mutex // protects ctx, done and sending of the result
transport.go#L2096: mu sync.Mutex // guards following fields
transport.go#L2964: mu sync.Mutex // guards following 4 fields
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#L458: roundTripMutex sync.Mutex
reverseproxy.go#L686: mu sync.Mutex // protects t, flushPending, and dst.Flush
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#L24: mu sync.Mutex
reflect
type.go#L1741: sync.Mutex // Guards stores (but not loads) on m.
type.go#L1811: var funcTypesMutex sync.Mutex
type.go#L2097: sync.Mutex // Guards stores (but not loads) on m.
runtime/pprof
pprof.go#L180: mu sync.Mutex
pprof.go#L188: mu sync.Mutex
pprof.go#L817: sync.Mutex
runtime/trace
trace.go#L152: sync.Mutex // gate mutators (Start, Stop)
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#L568: lastNameMu sync.Mutex // guards lastName
testing.go#L661: tempDirMu sync.Mutex
testing.go#L1892: mu sync.Mutex
unique
handle.go#L110: cleanupMu sync.Mutex
handle.go#L111: cleanupFuncsMu sync.Mutex
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)