func sync/atomic.AddInt32
12 uses
sync/atomic (current package)
doc.go#L92: func AddInt32(addr *int32, delta int32) (new int32)
sync
mutex.go#L158: atomic.AddInt32(&m.state, delta)
mutex.go#L186: new := atomic.AddInt32(&m.state, -mutexLocked)
rwmutex.go#L61: if atomic.AddInt32(&rw.readerCount, 1) < 0 {
rwmutex.go#L81: if r := atomic.AddInt32(&rw.readerCount, -1); r < 0 {
rwmutex.go#L96: if atomic.AddInt32(&rw.readerWait, -1) == 0 {
rwmutex.go#L113: r := atomic.AddInt32(&rw.readerCount, -rwmutexMaxReaders) + rwmutexMaxReaders
rwmutex.go#L115: if r != 0 && atomic.AddInt32(&rw.readerWait, r) != 0 {
rwmutex.go#L139: r := atomic.AddInt32(&rw.readerCount, rwmutexMaxReaders)
context
context.go#L277: atomic.AddInt32(&goroutines, +1)
crypto/tls
conn.go#L1109: defer atomic.AddInt32(&c.activeCall, -2)
testing
testing.go#L958: seq := atomic.AddInt32(&c.tempDirSeq, 1)