Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
func NewDuration ¶
type Float64 ¶
func NewFloat64 ¶
type Ptr ¶
type Ptr[T any] struct { // contains filtered or unexported fields }
func (*Ptr[T]) CompareAndSwap ¶
CompareAndSwap executes the compare-and-swap operation for the wrapped pointer.
type Uintptr ¶
func NewUintptr ¶
type UnsafePointer ¶
type UnsafePointer = atomic.UnsafePointer
func NewUnsafePointer ¶
func NewUnsafePointer(val unsafe.Pointer) *UnsafePointer
type Value ¶
type Value[T comparable] struct { // contains filtered or unexported fields }
Value wrapped a copiable value atomically WARNING: Store, Swap, and CompareAndSwap operations do allocate
func (*Value[T]) CompareAndSwap ¶
CompareAndSwap executes the compare-and-swap operation for the wrapped pointer.
Click to show internal directories.
Click to hide internal directories.