type sync.Mutex
237 uses
sync (current package)
map.go#L28: mu Mutex
mutex.go#L25: type Mutex struct {
mutex.go#L72: func (m *Mutex) Lock() {
mutex.go#L84: func (m *Mutex) lockSlow() {
mutex.go#L179: func (m *Mutex) Unlock() {
mutex.go#L194: func (m *Mutex) unlockSlow(new int32) {
once.go#L21: m Mutex
pool.go#L260: allPoolsMu Mutex
rwmutex.go#L29: w Mutex // held if there are pending writers
archive/zip
register.go#L41: mu sync.Mutex // guards Close and Write
register.go#L79: mu sync.Mutex // guards Close and Read
cloud.google.com/go/compute/metadata
metadata.go#L54: mu sync.Mutex
cloud.google.com/go/logging
logging.go#L112: mu sync.Mutex
cloud.google.com/go/profiler
profiler.go#L192: m sync.Mutex
cloud.google.com/go/storage
writer.go#L85: mu sync.Mutex
context
context.go#L347: mu sync.Mutex // protects following fields
contrib.go.opencensus.io/exporter/prometheus
prometheus.go#L110: mu sync.Mutex // mu guards all the fields.
contrib.go.opencensus.io/exporter/stackdriver
stats.go#L64: protoMu sync.Mutex
stats.go#L67: metricMu sync.Mutex
trace.go#L186: mu sync.Mutex
contrib.go.opencensus.io/integrations/ocsql
driver.go#L29: regMu sync.Mutex
crypto/rand
rand_unix.go#L42: mu sync.Mutex
rand_unix.go#L116: mu sync.Mutex
crypto/tls
common.go#L1300: var writerMutex sync.Mutex
common.go#L1342: sync.Mutex
conn.go#L37: handshakeMutex sync.Mutex
conn.go#L156: sync.Mutex
database/sql
sql.go#L413: mu sync.Mutex // protects following fields
sql.go#L460: sync.Mutex // guards following
sql.go#L2054: sync.Mutex
sql.go#L2468: mu sync.Mutex // protects the rest of the fields
encoding/gob
decoder.go#L28: mutex sync.Mutex // each item must be received atomically
encoder.go#L18: mutex sync.Mutex // each item must be sent atomically
type.go#L164: var typeLock sync.Mutex // set while building a type
type.go#L675: encInit sync.Mutex // protects creation of encoder
github.com/aws/aws-sdk-go/aws
types.go#L165: m sync.Mutex
github.com/aws/aws-sdk-go/aws/csm
enable.go#L10: lock sync.Mutex
github.com/aws/aws-sdk-go/aws/request
offset_reader.go#L14: lock sync.Mutex
github.com/aws/aws-sdk-go/internal/sdkrand
locked_source.go#L11: lk sync.Mutex
github.com/aws/aws-sdk-go/internal/sync/singleflight
singleflight.go#L34: mu sync.Mutex // protects m
github.com/evanw/esbuild/internal/bundler
bundler.go#L1811: astMutex sync.Mutex
bundler.go#L1814: definesMutex sync.Mutex
github.com/evanw/esbuild/internal/cache
cache.go#L64: mutex sync.Mutex
cache_ast.go#L30: mutex sync.Mutex
cache_ast.go#L84: mutex sync.Mutex
cache_ast.go#L140: mutex sync.Mutex
cache_fs.go#L15: mutex sync.Mutex
github.com/evanw/esbuild/internal/config
config.go#L346: var filterMutex sync.Mutex
globals.go#L12: var processedGlobalsMutex sync.Mutex
github.com/evanw/esbuild/internal/fs
fs.go#L20: mutex sync.Mutex
fs_real.go#L15: entriesMutex sync.Mutex
fs_real.go#L22: watchMutex sync.Mutex
github.com/evanw/esbuild/internal/logger
logger.go#L347: var mutex sync.Mutex
logger.go#L766: var mutex sync.Mutex
github.com/evanw/esbuild/internal/resolver
resolver.go#L162: mutex sync.Mutex
github.com/evanw/esbuild/pkg/api
api_impl.go#L885: mutex sync.Mutex
serve_other.go#L27: mutex sync.Mutex
github.com/go-git/go-billy/v5/osfs
os.go#L138: m sync.Mutex
github.com/go-git/go-billy/v5/util
util.go#L122: var randmu sync.Mutex
github.com/go-git/go-git/v5/plumbing/cache
buffer_lru.go#L16: mut sync.Mutex
object_lru.go#L18: mut sync.Mutex
github.com/go-git/go-git/v5/plumbing/format/idxfile
writer.go#L20: m sync.Mutex
github.com/go-redis/redis/v8
cluster.go#L1689: mu sync.Mutex
iterator.go#L11: mu sync.Mutex // protects Scanner and pos
pipeline.go#L46: mu sync.Mutex
pubsub.go#L35: mu sync.Mutex
github.com/go-redis/redis/v8/internal
once.go#L29: m sync.Mutex
github.com/go-redis/redis/v8/internal/pool
pool.go#L78: connsMu sync.Mutex
github.com/golang-migrate/migrate/v4
migrate.go#L71: isLockedMu *sync.Mutex
migrate.go#L190: isLockedMu: &sync.Mutex{},
github.com/google/pprof/profile
profile.go#L53: encodeMu sync.Mutex
github.com/google/safehtml/template
template.go#L41: mu sync.Mutex
github.com/jackc/pgconn
pgconn.go#L84: bufferingReceiveMux sync.Mutex
github.com/jackc/pgx/v4/stdlib
sql.go#L106: fakeTxMutex sync.Mutex
sql.go#L170: configMutex sync.Mutex
github.com/kevinburke/ssh_config
config.go#L510: mu sync.Mutex
github.com/lib/pq
copy.go#L55: sync.Mutex // guards err
encode.go#L252: lock sync.Mutex
notify.go#L49: connectionLock sync.Mutex
notify.go#L56: senderLock sync.Mutex
notify.go#L413: lock sync.Mutex
github.com/Masterminds/squirrel
stmtcacher.go#L34: mu sync.Mutex
github.com/prometheus/client_golang/prometheus
go_collector.go#L32: msMtx sync.Mutex // Protects msLast and msLastTimestamp.
histogram.go#L247: writeMtx sync.Mutex // Only used in the Write method.
summary.go#L249: bufMtx sync.Mutex // Protects hotBuf and hotBufExpTime.
summary.go#L250: mtx sync.Mutex // Protects every other moving part.
summary.go#L415: writeMtx sync.Mutex // Only used in the Write method.
go.opencensus.io/trace
config.go#L44: var configWriteMu sync.Mutex
export.go#L37: exporterMu sync.Mutex
spanstore.go#L187: mu sync.Mutex // protects everything below.
trace.go#L43: mu sync.Mutex // protects the contents of *data (but not the pointer value.)
trace.go#L559: sync.Mutex
go.opencensus.io/zpages
rpcz.go#L37: mu sync.Mutex // protects snaps
go.opentelemetry.io/otel/api/global/internal
meter.go#L57: lock sync.Mutex
meter.go#L67: lock sync.Mutex
trace.go#L45: mtx sync.Mutex
go.opentelemetry.io/otel/api/metric/registry
registry.go#L37: lock sync.Mutex
go.opentelemetry.io/otel/label
set.go#L39: lock sync.Mutex
go/token
position.go#L106: mutex sync.Mutex
golang.org/x/crypto/ssh
channel.go#L179: sentRequestMu sync.Mutex
channel.go#L191: windowMu sync.Mutex
channel.go#L198: writeMu sync.Mutex
client.go#L25: mu sync.Mutex
common.go#L332: func newCond() *sync.Cond { return sync.NewCond(new(sync.Mutex)) }
handshake.go#L61: mu sync.Mutex
mux.go#L23: sync.Mutex
mux.go#L94: globalSentMu sync.Mutex
session.go#L330: mu sync.Mutex
tcpip.go#L144: sync.Mutex
golang.org/x/crypto/ssh/agent
client.go#L308: mu sync.Mutex
keyring.go#L26: mu sync.Mutex
golang.org/x/exp/rand
rand.go#L340: lk sync.Mutex
golang.org/x/net/http2
client_conn_pool.go#L37: mu sync.Mutex // TODO: maybe switch to RWMutex
pipe.go#L17: mu sync.Mutex
server.go#L81: testHookOnPanicMu *sync.Mutex // nil except in tests
server.go#L177: mu sync.Mutex
server.go#L2376: closeNotifierMu sync.Mutex // guards closeNotifierCh
transport.go#L243: mu sync.Mutex // guards following
transport.go#L271: wmu sync.Mutex // held while writing; acquire AFTER mu if holding both
golang.org/x/oauth2
oauth2.go#L291: mu sync.Mutex // guards t
golang.org/x/oauth2/internal
token.go#L120: sync.Mutex
golang.org/x/pkgsite/internal/database
database.go#L38: mu sync.Mutex
golang.org/x/pkgsite/internal/dcensus
debug.go#L20: mu sync.Mutex
golang.org/x/pkgsite/internal/fetch
fetch.go#L394: fetchInfoMu sync.Mutex
loadshedding.go#L19: mu sync.Mutex
golang.org/x/pkgsite/internal/frontend
server.go#L54: mu sync.Mutex // Protects all fields below
golang.org/x/pkgsite/internal/localdatasource
datasource.go#L31: mu sync.Mutex
golang.org/x/pkgsite/internal/log
log.go#L24: mu sync.Mutex
golang.org/x/pkgsite/internal/poller
poller.go#L22: mu sync.Mutex
golang.org/x/pkgsite/internal/proxy
server.go#L23: mu sync.Mutex
golang.org/x/pkgsite/internal/worker
server.go#L423: mu sync.Mutex
golang.org/x/sync/semaphore
semaphore.go#L31: mu sync.Mutex
golang.org/x/sys/unix
syscall_unix.go#L101: sync.Mutex
google.golang.org/api/idtoken
cache.go#L25: mu sync.Mutex
google.golang.org/api/internal/gensupport
media.go#L115: mu sync.Mutex
resumable.go#L55: mu sync.Mutex // guards progress
google.golang.org/api/support/bundler
bundler.go#L87: mu sync.Mutex // guards access to fields below
google.golang.org/grpc
balancer_conn_wrappers.go#L44: balancerMu sync.Mutex // synchronizes calls to the balancer
balancer_conn_wrappers.go#L49: mu sync.Mutex
balancer_conn_wrappers.go#L192: mu sync.Mutex
clientconn.go#L409: mu sync.Mutex
clientconn.go#L505: lceMu sync.Mutex // protects lastConnectionError
clientconn.go#L1053: mu sync.Mutex
clientconn.go#L1490: mu sync.Mutex
picker_wrapper.go#L36: mu sync.Mutex
resolver_conn_wrapper.go#L39: resolverMu sync.Mutex
resolver_conn_wrapper.go#L44: pollingMu sync.Mutex
server.go#L103: mu sync.Mutex // guards following
stream.go#L421: mu sync.Mutex
stream.go#L454: mu sync.Mutex // guards trInfo.tr
stream.go#L1137: mu sync.Mutex
stream.go#L1371: mu sync.Mutex // protects trInfo.tr after the service handler runs.
trace.go#L57: mu sync.Mutex
google.golang.org/grpc/balancer/grpclb
grpclb.go#L197: mu sync.Mutex // guards everything following.
grpclb_picker.go#L41: mu sync.Mutex
grpclb_picker.go#L116: mu sync.Mutex
grpclb_picker.go#L146: mu sync.Mutex
grpclb_util.go#L101: mu sync.Mutex
google.golang.org/grpc/balancer/roundrobin
roundrobin.go#L73: mu sync.Mutex
google.golang.org/grpc/credentials/alts/internal/handshaker
handshaker.go#L63: mu sync.Mutex
google.golang.org/grpc/credentials/alts/internal/handshaker/service
service.go#L31: mu sync.Mutex
google.golang.org/grpc/credentials/oauth
oauth.go#L132: mu sync.Mutex
google.golang.org/grpc/internal/binarylog
sink.go#L96: mu sync.Mutex
google.golang.org/grpc/internal/buffer
unbounded.go#L38: mu sync.Mutex
google.golang.org/grpc/internal/channelz
types.go#L633: mu sync.Mutex
google.golang.org/grpc/internal/grpcrand
grpcrand.go#L31: mu sync.Mutex
google.golang.org/grpc/internal/transport
bdp_estimator.go#L53: mu sync.Mutex
controlbuf.go#L276: mu sync.Mutex
flowcontrol.go#L123: mu sync.Mutex
handler_server.go#L133: writeStatusMu sync.Mutex
http2_client.go#L109: mu sync.Mutex // guard the following variables
http2_server.go#L102: mu sync.Mutex // guard the following
transport.go#L86: mu sync.Mutex
transport.go#L265: hdrMu sync.Mutex
google.golang.org/protobuf/internal/filedesc
desc.go#L41: mu sync.Mutex // protects L2
google.golang.org/protobuf/internal/impl
checkinit.go#L86: needsInitCheckMu sync.Mutex
codec_extension.go#L74: mu sync.Mutex
extension.go#L36: mu sync.Mutex
legacy_message.go#L145: aberrantMessageDescLock sync.Mutex
message.go#L40: 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
image
format.go#L27: formatsMu sync.Mutex
internal/singleflight
singleflight.go#L30: mu sync.Mutex // protects m
internal/testlog
exit.go#L24: mu sync.Mutex
io
pipe.go#L17: sync.Mutex // guards following
pipe.go#L40: wrMu sync.Mutex // Serializes Write operations
io/ioutil
tempfile.go#L22: var randmu sync.Mutex
log
log.go#L53: mu sync.Mutex // ensures atomic writes; protects the following fields
math/big
natconv.go#L450: sync.Mutex
math/rand
rand.go#L383: lk sync.Mutex
mime
type.go#L21: extensionsMu sync.Mutex // Guards stores (but not loads) on extensions.
net
hosts.go#L33: sync.Mutex
pipe.go#L16: mu sync.Mutex // Guards timer and cancel
pipe.go#L88: wrMu sync.Mutex // Serialize Write operations
net/http
h2_bundle.go#L713: mu sync.Mutex // TODO: maybe switch to RWMutex
h2_bundle.go#L3467: mu sync.Mutex
h2_bundle.go#L3647: http2testHookOnPanicMu *sync.Mutex // nil except in tests
h2_bundle.go#L3743: mu sync.Mutex
h2_bundle.go#L5931: closeNotifierMu sync.Mutex // guards closeNotifierCh
h2_bundle.go#L6745: mu sync.Mutex // guards following
h2_bundle.go#L6773: wmu sync.Mutex // held while writing; acquire AFTER mu if holding both
server.go#L296: mu sync.Mutex
server.go#L436: writeContinueMu sync.Mutex
server.go#L659: mu sync.Mutex // guards following
server.go#L2647: mu sync.Mutex
server.go#L3349: mu sync.Mutex
server.go#L3469: uniqNameMu sync.Mutex
transfer.go#L815: mu sync.Mutex // guards following, and calls to Read and Close
transport.go#L95: idleMu sync.Mutex
transport.go#L101: reqMu sync.Mutex
transport.go#L104: altMu sync.Mutex // guards changing altProto only
transport.go#L107: connsPerHostMu sync.Mutex
transport.go#L458: mu sync.Mutex // guards err
transport.go#L1192: mu sync.Mutex // protects pc, err, close(ready)
transport.go#L1896: mu sync.Mutex // guards following fields
transport.go#L2744: mu sync.Mutex // guards following 4 fields
net/http/httptest
server.go#L51: mu sync.Mutex // guards closed and conns
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#L493: mu sync.Mutex // protects t, flushPending, and dst.Flush
net/textproto
pipeline.go#L29: mu sync.Mutex
pipeline.go#L73: mu sync.Mutex
os
getwd.go#L14: sync.Mutex
reflect
type.go#L1767: sync.Mutex // Guards stores (but not loads) on m.
type.go#L2324: sync.Mutex // Guards stores (but not loads) on m.
runtime/pprof
pprof.go#L135: mu sync.Mutex
pprof.go#L143: mu sync.Mutex
pprof.go#L745: sync.Mutex
runtime/trace
trace.go#L151: sync.Mutex // gate mutators (Start, Stop)
syscall
syscall_unix.go#L47: sync.Mutex
testing
benchmark.go#L68: var benchmarkLock sync.Mutex
match.go#L20: mu sync.Mutex
match.go#L26: var matchMutex sync.Mutex
testing.go#L340: lastNameMu sync.Mutex // guards lastName
testing.go#L416: tempDirMu sync.Mutex
testing.go#L1262: mu sync.Mutex
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |