types

package
v0.0.0-...-5801db9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float64

type Float64 struct {
	// contains filtered or unexported fields
}

func NewFloat64

func NewFloat64(val float64) *Float64

NewFloat64 creates a new Float64 with the given initial value

func (*Float64) Add

func (f *Float64) Add(delta float64) float64

Add atomically adds delta to the value and returns the new value

func (*Float64) CompareAndSwap

func (f *Float64) CompareAndSwap(old, new float64) bool

CompareAndSwap executes the compare-and-swap operation for a float64 value

func (*Float64) Load

func (f *Float64) Load() float64

Load atomically loads and returns the value

func (*Float64) Store

func (f *Float64) Store(val float64)

Store atomically stores the given value

Jump to

Keyboard shortcuts

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