Go stdlib package — sync/atomic. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.AddInt32()NeutralAddInt32(addr *int32, delta int32) int32
AddInt32 atomically adds delta to *addr and returns the new value.
.AddInt64()NeutralAddInt64(addr *int64, delta int64) int64
AddInt64 atomically adds delta to *addr and returns the new value.
.AddUint32()NeutralAddUint32(addr *uint32, delta uint32) uint32
AddUint32 atomically adds delta to *addr and returns the new value.
.AddUint64()NeutralAddUint64(addr *uint64, delta uint64) uint64
AddUint64 atomically adds delta to *addr and returns the new value.
.AddUintptr()NeutralAddUintptr(addr *uintptr, delta uintptr) uintptr
AddUintptr atomically adds delta to *addr and returns the new value.
.Bool.CompareAndSwap()NeutralBool.CompareAndSwap(old bool, new bool) bool
CompareAndSwap executes the compare-and-swap operation for the boolean value x.
.Bool.Load()NeutralBool.Load() bool
Load atomically loads and returns the value stored in x.
.Bool.Swap()NeutralBool.Swap(new bool) bool
Swap atomically stores new into x and returns the previous value.
.CompareAndSwapInt32()NeutralCompareAndSwapInt32(addr *int32, old int32, new int32) bool
CompareAndSwapInt32 executes the compare-and-swap operation for an int32 value.
| FQN | Field | |
|---|---|---|
| sync/atomic | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # sync/atomic