type Bool … // Load atomically loads and returns the value stored in x. func (x *Bool) Load() bool { … } // Store atomically stores val into x. func (x *Bool) Store(val bool) { … } // Swap atomically stores new into x and returns the previous value. func (x *Bool) Swap(new bool) (old bool) { … } // CompareAndSwap executes the compare-and-swap operation for the boolean value x. func (x *Bool) CompareAndSwap(old, new bool) (swapped bool) { … } // b32 returns a uint32 0 or 1 representing b. func b32(b bool) uint32 { … } var _ … type Pointer … // Load atomically loads and returns the value stored in x. func (x *Pointer[T]) Load() *T { … } // Store atomically stores val into x. func (x *Pointer[T]) Store(val *T) { … } // Swap atomically stores new into x and returns the previous value. func (x *Pointer[T]) Swap(new *T) (old *T) { … } // CompareAndSwap executes the compare-and-swap operation for x. func (x *Pointer[T]) CompareAndSwap(old, new *T) (swapped bool) { … } type Int32 … // Load atomically loads and returns the value stored in x. func (x *Int32) Load() int32 { … } // Store atomically stores val into x. func (x *Int32) Store(val int32) { … } // Swap atomically stores new into x and returns the previous value. func (x *Int32) Swap(new int32) (old int32) { … } // CompareAndSwap executes the compare-and-swap operation for x. func (x *Int32) CompareAndSwap(old, new int32) (swapped bool) { … } // Add atomically adds delta to x and returns the new value. func (x *Int32) Add(delta int32) (new int32) { … } // And atomically performs a bitwise AND operation on x using the bitmask // provided as mask and returns the old value. func (x *Int32) And(mask int32) (old int32) { … } // Or atomically performs a bitwise OR operation on x using the bitmask // provided as mask and returns the old value. func (x *Int32) Or(mask int32) (old int32) { … } type Int64 … // Load atomically loads and returns the value stored in x. func (x *Int64) Load() int64 { … } // Store atomically stores val into x. func (x *Int64) Store(val int64) { … } // Swap atomically stores new into x and returns the previous value. func (x *Int64) Swap(new int64) (old int64) { … } // CompareAndSwap executes the compare-and-swap operation for x. func (x *Int64) CompareAndSwap(old, new int64) (swapped bool) { … } // Add atomically adds delta to x and returns the new value. func (x *Int64) Add(delta int64) (new int64) { … } // And atomically performs a bitwise AND operation on x using the bitmask // provided as mask and returns the old value. func (x *Int64) And(mask int64) (old int64) { … } // Or atomically performs a bitwise OR operation on x using the bitmask // provided as mask and returns the old value. func (x *Int64) Or(mask int64) (old int64) { … } type Uint32 … // Load atomically loads and returns the value stored in x. func (x *Uint32) Load() uint32 { … } // Store atomically stores val into x. func (x *Uint32) Store(val uint32) { … } // Swap atomically stores new into x and returns the previous value. func (x *Uint32) Swap(new uint32) (old uint32) { … } // CompareAndSwap executes the compare-and-swap operation for x. func (x *Uint32) CompareAndSwap(old, new uint32) (swapped bool) { … } // Add atomically adds delta to x and returns the new value. func (x *Uint32) Add(delta uint32) (new uint32) { … } // And atomically performs a bitwise AND operation on x using the bitmask // provided as mask and returns the old value. func (x *Uint32) And(mask uint32) (old uint32) { … } // Or atomically performs a bitwise OR operation on x using the bitmask // provided as mask and returns the old value. func (x *Uint32) Or(mask uint32) (old uint32) { … } type Uint64 … // Load atomically loads and returns the value stored in x. func (x *Uint64) Load() uint64 { … } // Store atomically stores val into x. func (x *Uint64) Store(val uint64) { … } // Swap atomically stores new into x and returns the previous value. func (x *Uint64) Swap(new uint64) (old uint64) { … } // CompareAndSwap executes the compare-and-swap operation for x. func (x *Uint64) CompareAndSwap(old, new uint64) (swapped bool) { … } // Add atomically adds delta to x and returns the new value. func (x *Uint64) Add(delta uint64) (new uint64) { … } // And atomically performs a bitwise AND operation on x using the bitmask // provided as mask and returns the old value. func (x *Uint64) And(mask uint64) (old uint64) { … } // Or atomically performs a bitwise OR operation on x using the bitmask // provided as mask and returns the old value. func (x *Uint64) Or(mask uint64) (old uint64) { … } type Uintptr … // Load atomically loads and returns the value stored in x. func (x *Uintptr) Load() uintptr { … } // Store atomically stores val into x. func (x *Uintptr) Store(val uintptr) { … } // Swap atomically stores new into x and returns the previous value. func (x *Uintptr) Swap(new uintptr) (old uintptr) { … } // CompareAndSwap executes the compare-and-swap operation for x. func (x *Uintptr) CompareAndSwap(old, new uintptr) (swapped bool) { … } // Add atomically adds delta to x and returns the new value. func (x *Uintptr) Add(delta uintptr) (new uintptr) { … } // And atomically performs a bitwise AND operation on x using the bitmask // provided as mask and returns the old value. func (x *Uintptr) And(mask uintptr) (old uintptr) { … } // Or atomically performs a bitwise OR operation on x using the bitmask // provided as mask and returns the updated value after the OR operation. func (x *Uintptr) Or(mask uintptr) (old uintptr) { … } type noCopy … // Lock is a no-op used by -copylocks checker from `go vet`. func (*noCopy) Lock() { … } func (*noCopy) Unlock() { … } type align64 …