atomicx

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value[T any] struct {
	// contains filtered or unexported fields
}

func NewValue

func NewValue[T any](x T) *Value[T]

func (*Value[T]) CompareAndSwap

func (v *Value[T]) CompareAndSwap(old, new T) bool

func (*Value[T]) Load

func (v *Value[T]) Load() T

func (*Value[T]) Store

func (v *Value[T]) Store(x T)

func (*Value[T]) Swap

func (v *Value[T]) Swap(x T) T

Jump to

Keyboard shortcuts

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