Documentation ¶
Overview ¶
Package atomic provides a mockable wrapper for sync/atomic.
Index ¶
- type Impl
- func (*Impl) AddInt32(addr *int32, delta int32) (new int32)
- func (*Impl) AddInt64(addr *int64, delta int64) (new int64)
- func (*Impl) AddUint32(addr *uint32, delta uint32) (new uint32)
- func (*Impl) AddUint64(addr *uint64, delta uint64) (new uint64)
- func (*Impl) AddUintptr(addr *uintptr, delta uintptr) (new uintptr)
- func (*Impl) CompareAndSwapInt32(addr *int32, old int32, new int32) (swapped bool)
- func (*Impl) CompareAndSwapInt64(addr *int64, old int64, new int64) (swapped bool)
- func (*Impl) CompareAndSwapPointer(addr *unsafe.Pointer, old unsafe.Pointer, new unsafe.Pointer) (swapped bool)
- func (*Impl) CompareAndSwapUint32(addr *uint32, old uint32, new uint32) (swapped bool)
- func (*Impl) CompareAndSwapUint64(addr *uint64, old uint64, new uint64) (swapped bool)
- func (*Impl) CompareAndSwapUintptr(addr *uintptr, old uintptr, new uintptr) (swapped bool)
- func (*Impl) LoadInt32(addr *int32) (val int32)
- func (*Impl) LoadInt64(addr *int64) (val int64)
- func (*Impl) LoadPointer(addr *unsafe.Pointer) (val unsafe.Pointer)
- func (*Impl) LoadUint32(addr *uint32) (val uint32)
- func (*Impl) LoadUint64(addr *uint64) (val uint64)
- func (*Impl) LoadUintptr(addr *uintptr) (val uintptr)
- func (*Impl) StoreInt32(addr *int32, val int32)
- func (*Impl) StoreInt64(addr *int64, val int64)
- func (*Impl) StorePointer(addr *unsafe.Pointer, val unsafe.Pointer)
- func (*Impl) StoreUint32(addr *uint32, val uint32)
- func (*Impl) StoreUint64(addr *uint64, val uint64)
- func (*Impl) StoreUintptr(addr *uintptr, val uintptr)
- func (*Impl) SwapInt32(addr *int32, new int32) (old int32)
- func (*Impl) SwapInt64(addr *int64, new int64) (old int64)
- func (*Impl) SwapPointer(addr *unsafe.Pointer, new unsafe.Pointer) (old unsafe.Pointer)
- func (*Impl) SwapUint32(addr *uint32, new uint32) (old uint32)
- func (*Impl) SwapUint64(addr *uint64, new uint64) (old uint64)
- func (*Impl) SwapUintptr(addr *uintptr, new uintptr) (old uintptr)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) CompareAndSwapInt32 ¶
func (*Impl) CompareAndSwapInt64 ¶
func (*Impl) CompareAndSwapPointer ¶
func (*Impl) CompareAndSwapUint32 ¶
func (*Impl) CompareAndSwapUint64 ¶
func (*Impl) CompareAndSwapUintptr ¶
func (*Impl) LoadUint32 ¶
func (*Impl) LoadUint64 ¶
func (*Impl) LoadUintptr ¶
func (*Impl) StoreInt32 ¶
func (*Impl) StoreInt64 ¶
func (*Impl) StoreUint32 ¶
func (*Impl) StoreUint64 ¶
func (*Impl) StoreUintptr ¶
func (*Impl) SwapPointer ¶
type Interface ¶
type Interface interface { AddInt32(addr *int32, delta int32) (new int32) AddInt64(addr *int64, delta int64) (new int64) AddUint32(addr *uint32, delta uint32) (new uint32) AddUint64(addr *uint64, delta uint64) (new uint64) AddUintptr(addr *uintptr, delta uintptr) (new uintptr) CompareAndSwapInt32(addr *int32, old int32, new int32) (swapped bool) CompareAndSwapInt64(addr *int64, old int64, new int64) (swapped bool) CompareAndSwapPointer(addr *unsafe.Pointer, old unsafe.Pointer, new unsafe.Pointer) (swapped bool) CompareAndSwapUint32(addr *uint32, old uint32, new uint32) (swapped bool) CompareAndSwapUint64(addr *uint64, old uint64, new uint64) (swapped bool) CompareAndSwapUintptr(addr *uintptr, old uintptr, new uintptr) (swapped bool) LoadInt32(addr *int32) (val int32) LoadInt64(addr *int64) (val int64) LoadPointer(addr *unsafe.Pointer) (val unsafe.Pointer) LoadUint32(addr *uint32) (val uint32) LoadUint64(addr *uint64) (val uint64) LoadUintptr(addr *uintptr) (val uintptr) StoreInt32(addr *int32, val int32) StoreInt64(addr *int64, val int64) StorePointer(addr *unsafe.Pointer, val unsafe.Pointer) StoreUint32(addr *uint32, val uint32) StoreUint64(addr *uint64, val uint64) StoreUintptr(addr *uintptr, val uintptr) SwapInt32(addr *int32, new int32) (old int32) SwapInt64(addr *int64, new int64) (old int64) SwapPointer(addr *unsafe.Pointer, new unsafe.Pointer) (old unsafe.Pointer) SwapUint32(addr *uint32, new uint32) (old uint32) SwapUint64(addr *uint64, new uint64) (old uint64) SwapUintptr(addr *uintptr, new uintptr) (old uintptr) }
Click to show internal directories.
Click to hide internal directories.