exatomic

package
v0.0.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFloat32

func AddFloat32(addr *float32, delta float32) (new float32)

AddFloat32 atomically adds delta to *addr and returns the new value.

func AddFloat64

func AddFloat64(addr *float64, delta float64) (new float64)

AddFloat64 atomically adds delta to *addr and returns the new value.

func CompareAndSwapFloat32

func CompareAndSwapFloat32(addr *float32, old, new float32) (swapped bool)

CompareAndSwapFloat32 executes the compare-and-swap operation for an float32 value.

func CompareAndSwapFloat64

func CompareAndSwapFloat64(addr *float64, old, new float64) (swapped bool)

CompareAndSwapFloat64 executes the compare-and-swap operation for an float64 value.

func LoadFloat32

func LoadFloat32(addr *float32) (val float32)

LoadFloat32 atomically loads *addr.

func LoadFloat64

func LoadFloat64(addr *float64) (val float64)

LoadFloat64 atomically loads *addr.

func StoreFloat32

func StoreFloat32(addr *float32, val float32)

StoreFloat32 atomically stores val into *addr.

func StoreFloat64

func StoreFloat64(addr *float64, val float64)

StoreFloat64 atomically stores val into *addr.

func SwapFloat32

func SwapFloat32(addr *float32, new float32) (old float32)

SwapFloat32 atomically stores new into *addr and returns the previous *addr value.

func SwapFloat64

func SwapFloat64(addr *float64, new float64) (old float64)

SwapFloat64 atomically stores new into *addr and returns the previous *addr value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL