sync.Mutex.state (field)
17 uses
sync (current package)
mutex.go#L26: state int32
mutex.go#L74: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L89: old := m.state
mutex.go#L98: atomic.CompareAndSwapInt32(&m.state, old, old|mutexWoken) {
mutex.go#L103: old = m.state
mutex.go#L129: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L140: old = m.state
mutex.go#L158: atomic.AddInt32(&m.state, delta)
mutex.go#L164: old = m.state
mutex.go#L181: _ = m.state
mutex.go#L186: new := atomic.AddInt32(&m.state, -mutexLocked)
mutex.go#L212: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L216: old = m.state
rwmutex.go#L58: _ = rw.w.state
rwmutex.go#L77: _ = rw.w.state
rwmutex.go#L107: _ = rw.w.state
rwmutex.go#L133: _ = rw.w.state
 |
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. |