type sync.Mutex

101 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

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

	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

	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

	go.etcd.io/bbolt
		db.go#L143: 	batchMu sync.Mutex
		db.go#L146: 	rwlock   sync.Mutex   // Allows only one writer at a time.
		db.go#L147: 	metalock sync.Mutex   // Protects meta page access.

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

	golang.org/x/sys/unix
		syscall_unix.go#L101: 	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/textproto
		pipeline.go#L29: 	mu       sync.Mutex
		pipeline.go#L73: 	mu   sync.Mutex

	os
		getwd.go#L14: 	sync.Mutex

	os/signal
		signal.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)

	src.elv.sh/pkg/cli
		loop.go#L18: 	redrawMutex *sync.Mutex
		loop.go#L62: 		redrawMutex: new(sync.Mutex),
		tty.go#L54: 	rawMutex sync.Mutex

	src.elv.sh/pkg/cli/clitest
		fake_tty.go#L32: 	eventChMutex sync.Mutex

	src.elv.sh/pkg/cli/lscolors
		lscolors.go#L33: 	lastColoristMutex sync.Mutex

	src.elv.sh/pkg/cli/term
		file_reader_unix.go#L38: 	mutex sync.Mutex

	src.elv.sh/pkg/edit
		completion.go#L452: 		var outputMutex sync.Mutex
		hist_store.go#L13: 	m  sync.Mutex
		hist_store.go#L50: 	m *sync.Mutex
		listing_custom.go#L41: 			var itemsMutex sync.Mutex
		prompt.go#L133: 		resultMutex sync.Mutex

	src.elv.sh/pkg/edit/highlight
		highlighter.go#L19: 	sync.Mutex

	src.elv.sh/pkg/eval
		builtin_fn_misc.go#L257: 	evalCountMutex sync.Mutex
		port.go#L118: 	var m sync.Mutex
		port.go#L158: 	var mu sync.Mutex

	src.elv.sh/pkg/eval/mods/unix
		umask.go#L53: var umaskMutex sync.Mutex

	src.elv.sh/pkg/rpc
		client.go#L43: 	reqMutex sync.Mutex // protects following
		client.go#L46: 	mutex    sync.Mutex // protects following
		server.go#L150: 	sync.Mutex // protects counters
		server.go#L186: 	reqLock    sync.Mutex // protects freeReq
		server.go#L188: 	respLock   sync.Mutex // protects freeResp
		server.go#L339: func (server *Server) sendResponse(sending *sync.Mutex, req *Request, reply interface{}, codec ServerCodec, errmsg string) {
		server.go#L364: func (s *service) call(server *Server, sending *sync.Mutex, wg *sync.WaitGroup, mtype *methodType, req *Request, argv, replyv reflect.Value, codec ServerCodec) {
		server.go#L451: 	sending := new(sync.Mutex)
		server.go#L481: 	sending := new(sync.Mutex)

	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