func sync/atomic.AddInt32
26 uses
sync/atomic (current package)
doc.go#L115: func AddInt32(addr *int32, delta int32) (new int32)
type.go#L88: func (x *Int32) Add(delta int32) (new int32) { return AddInt32(&x.v, delta) }
go.uber.org/atomic
int32.go#L50: return atomic.AddInt32(&i.v, delta)
int32.go#L55: return atomic.AddInt32(&i.v, -delta)
go/types
check.go#L464: if atomic.AddInt32(&_aliasAny, 1) <= 0 {
check.go#L467: defer atomic.AddInt32(&_aliasAny, -1)
check.go#L469: if atomic.AddInt32(&_aliasAny, -1) >= 0 {
check.go#L472: defer atomic.AddInt32(&_aliasAny, 1)
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
channel.go#L256: atomic.AddInt32(&c.traceRefCount, 1)
channel.go#L260: atomic.AddInt32(&c.traceRefCount, -1)
subchannel.go#L139: atomic.AddInt32(&sc.traceRefCount, 1)
subchannel.go#L143: atomic.AddInt32(&sc.traceRefCount, -1)
google.golang.org/grpc/internal/idle
idle.go#L166: atomic.AddInt32(&m.activeCallsCount, math.MaxInt32)
idle.go#L173: atomic.AddInt32(&m.activeCallsCount, math.MaxInt32)
idle.go#L196: if atomic.AddInt32(&m.activeCallsCount, 1) > 0 {
idle.go#L207: atomic.AddInt32(&m.activeCallsCount, -1)
idle.go#L242: atomic.AddInt32(&m.activeCallsCount, math.MaxInt32)
idle.go#L263: atomic.AddInt32(&m.activeCallsCount, -1)
google.golang.org/grpc/internal/transport
flowcontrol.go#L56: atomic.AddInt32(&w.quota, -sz)
flowcontrol.go#L70: a := atomic.AddInt32(&w.quota, sz)
internal/sync
mutex.go#L169: atomic.AddInt32(&m.state, delta)
mutex.go#L194: new := atomic.AddInt32(&m.state, -mutexLocked)