func sync/atomic.AddInt32
26 uses
sync/atomic (current package)
doc.go#L92: func AddInt32(addr *int32, delta int32) (new int32)
sync
mutex.go#L182: atomic.AddInt32(&m.state, delta)
mutex.go#L210: new := atomic.AddInt32(&m.state, -mutexLocked)
rwmutex.go#L61: if atomic.AddInt32(&rw.readerCount, 1) < 0 {
rwmutex.go#L109: if r := atomic.AddInt32(&rw.readerCount, -1); r < 0 {
rwmutex.go#L124: if atomic.AddInt32(&rw.readerWait, -1) == 0 {
rwmutex.go#L141: r := atomic.AddInt32(&rw.readerCount, -rwmutexMaxReaders) + rwmutexMaxReaders
rwmutex.go#L143: if r != 0 && atomic.AddInt32(&rw.readerWait, r) != 0 {
rwmutex.go#L198: r := atomic.AddInt32(&rw.readerCount, rwmutexMaxReaders)
context
context.go#L277: atomic.AddInt32(&goroutines, +1)
crypto/tls
conn.go#L1117: defer atomic.AddInt32(&c.activeCall, -2)
github.com/go-pg/pg/v10/internal/pool
pool_sticky.go#L56: atomic.AddInt32(&p.shared, 1)
pool_sticky.go#L127: if shared := atomic.AddInt32(&p.shared, -1); shared > 0 {
go.uber.org/atomic
int32.go#L50: return atomic.AddInt32(&i.v, delta)
int32.go#L55: return atomic.AddInt32(&i.v, -delta)
golang.org/x/net/trace
events.go#L345: atomic.AddInt32(&el.refs, 1)
events.go#L349: if atomic.AddInt32(&el.refs, -1) == 0 {
trace.go#L865: atomic.AddInt32(&tr.refs, 1)
trace.go#L869: if atomic.AddInt32(&tr.refs, -1) == 0 {
google.golang.org/grpc/internal/channelz
types.go#L296: atomic.AddInt32(&c.traceRefCount, 1)
types.go#L300: atomic.AddInt32(&c.traceRefCount, -1)
types.go#L404: atomic.AddInt32(&sc.traceRefCount, 1)
types.go#L408: atomic.AddInt32(&sc.traceRefCount, -1)
google.golang.org/grpc/internal/transport
flowcontrol.go#L56: atomic.AddInt32(&w.quota, -sz)
flowcontrol.go#L70: a := atomic.AddInt32(&w.quota, sz)
testing
testing.go#L1100: seq := atomic.AddInt32(&c.tempDirSeq, 1)