atomic

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: GPL-2.0 Imports: 2 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool = atomic.Bool

type Int32

type Int32 = atomic.Int32

type Int64

type Int64 = atomic.Int64

type Pointer added in v0.2.4

type Pointer[T any] struct {
	atomic.Pointer[T]
}

type TypedValue added in v0.2.4

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

func (*TypedValue[T]) CompareAndSwap added in v0.2.4

func (t *TypedValue[T]) CompareAndSwap(old, new T) bool

func (*TypedValue[T]) Load added in v0.2.4

func (t *TypedValue[T]) Load() T

func (*TypedValue[T]) Store added in v0.2.4

func (t *TypedValue[T]) Store(value T)

func (*TypedValue[T]) Swap added in v0.2.4

func (t *TypedValue[T]) Swap(new T) T

type Uint32

type Uint32 = atomic.Uint32

type Uint64

type Uint64 = atomic.Uint64

type Uintptr

type Uintptr = atomic.Uintptr

type Value

type Value = atomic.Value

Jump to

Keyboard shortcuts

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