Documentation ¶
Overview ¶
Package atomic provides low-level atomic memory primitives.
Index ¶
- func AddInt(addr *int, delta int) (new int)
- func AddUint32(addr *uint32, delta uint32) (new uint32)
- func AddUintptr(addr *uintptr, delta uintptr) (new uintptr)
- func AndUint32(addr *uint32, mask uint32) (new uint32)
- func AndUintptr(addr *uintptr, mask uintptr) (new uintptr)
- func CompareAndSwapInt(addr *int, old, new int) (swapped bool)
- func CompareAndSwapPointer(addr *unsafe.Pointer, old, new unsafe.Pointer) (swapped bool)
- func CompareAndSwapUint32(addr *uint32, old, new uint32) (swapped bool)
- func CompareAndSwapUintptr(addr *uintptr, old, new uintptr) (swapped bool)
- func LoadInt(addr *int) int
- func LoadPointer(addr *unsafe.Pointer) unsafe.Pointer
- func LoadUint32(addr *uint32) uint32
- func LoadUintptr(addr *uintptr) uintptr
- func OrUint32(addr *uint32, mask uint32) (new uint32)
- func OrUintptr(addr *uintptr, mask uintptr) (new uintptr)
- func StoreInt(addr *int, val int)
- func StorePointer(addr *unsafe.Pointer, val unsafe.Pointer)
- func StoreUint32(addr *uint32, val uint32)
- func StoreUintptr(addr *uintptr, val uintptr)
- func SwapInt(addr *int, new int) (old int)
- func SwapPointer(addr *unsafe.Pointer, new unsafe.Pointer) (old unsafe.Pointer)
- func SwapUint32(addr *uint32, new uint32) (old uint32)
- func SwapUintptr(addr *uintptr, new uintptr) (old uintptr)
- func XorUint32(addr *uint32, mask uint32) (new uint32)
- func XorUintptr(addr *uintptr, mask uintptr) (new uintptr)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUintptr ¶
func AndUintptr ¶
func CompareAndSwapInt ¶
func CompareAndSwapPointer ¶
func CompareAndSwapUint32 ¶
func CompareAndSwapUintptr ¶
func LoadUint32 ¶
func LoadUintptr ¶
func StoreUint32 ¶
func StoreUintptr ¶
func SwapUint32 ¶
func SwapUintptr ¶
func XorUintptr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.