atomicutil

package
v1.34.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

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

func (*Bool) CompareAndSwap

func (b *Bool) CompareAndSwap(old bool, newVal bool) (swaped bool)

func (*Bool) Load

func (b *Bool) Load() (v bool)

func (*Bool) Store

func (b *Bool) Store(v bool)

func (*Bool) Swap

func (b *Bool) Swap(new bool) (old bool)

type Flag

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

func (*Flag) Release

func (f *Flag) Release()

func (*Flag) TestAndSet

func (f *Flag) TestAndSet() (ok bool)

type Float32

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

func (*Float32) CompareAndSwap

func (f *Float32) CompareAndSwap(old float32, new float32) (swaped bool)

func (*Float32) Load

func (f *Float32) Load() float32

func (*Float32) Store

func (f *Float32) Store(val float32)

func (*Float32) Swap

func (f *Float32) Swap(new float32) (old float32)

type Float64

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

func (*Float64) CompareAndSwap

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

func (*Float64) Load

func (f *Float64) Load() float64

func (*Float64) Store

func (f *Float64) Store(val float64)

func (*Float64) Swap

func (f *Float64) Swap(new float64) (old float64)

type Int32

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

func (*Int32) Add

func (i *Int32) Add(v int32) (new int32)

func (*Int32) CompareAndSwap

func (i *Int32) CompareAndSwap(old int32, new int32) (swaped bool)

func (*Int32) Load

func (i *Int32) Load() (v int32)

func (*Int32) Store

func (i *Int32) Store(v int32)

func (*Int32) Sub

func (i *Int32) Sub(v int32) (new int32)

func (*Int32) Swap

func (i *Int32) Swap(v int32) (old int32)

type Int64

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

func (*Int64) Add

func (i *Int64) Add(v int64) (new int64)

func (*Int64) CompareAndSwap

func (i *Int64) CompareAndSwap(old int64, new int64) (swaped bool)

func (*Int64) Load

func (i *Int64) Load() (v int64)

func (*Int64) Store

func (i *Int64) Store(v int64)

func (*Int64) Sub

func (i *Int64) Sub(v int64) (new int64)

func (*Int64) Swap

func (i *Int64) Swap(v int64) (old int64)

type Uint32

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

func (*Uint32) Add

func (i *Uint32) Add(v uint32) (new uint32)

func (*Uint32) CompareAndSwap

func (i *Uint32) CompareAndSwap(old uint32, new uint32) (swaped bool)

func (*Uint32) Load

func (i *Uint32) Load() (v uint32)

func (*Uint32) Store

func (i *Uint32) Store(v uint32)

func (*Uint32) Sub

func (i *Uint32) Sub(v int32) (new uint32)

func (*Uint32) Swap

func (i *Uint32) Swap(v uint32) (old uint32)

type Uint64

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

func (*Uint64) Add

func (i *Uint64) Add(v uint64) (new uint64)

func (*Uint64) CompareAndSwap

func (i *Uint64) CompareAndSwap(old uint64, new uint64) (swaped bool)

func (*Uint64) Load

func (i *Uint64) Load() (v uint64)

func (*Uint64) Store

func (i *Uint64) Store(v uint64)

func (*Uint64) Sub

func (i *Uint64) Sub(v int64) (new uint64)

func (*Uint64) Swap

func (i *Uint64) Swap(v uint64) (old uint64)

Jump to

Keyboard shortcuts

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