atomicutil

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicBool

type AtomicBool uint32

func (*AtomicBool) CompareAndSwap

func (b *AtomicBool) CompareAndSwap(old, new bool) (swapped bool)

func (*AtomicBool) Load

func (b *AtomicBool) Load() bool

func (*AtomicBool) Store

func (b *AtomicBool) Store(val bool)

type AtomicDuration

type AtomicDuration time.Duration

func (*AtomicDuration) Add

func (d *AtomicDuration) Add(duration time.Duration)

func (*AtomicDuration) Load

func (d *AtomicDuration) Load() time.Duration

func (*AtomicDuration) Store

func (d *AtomicDuration) Store(duration time.Duration)

type AtomicFloat64

type AtomicFloat64 uint64

func (*AtomicFloat64) Load

func (b *AtomicFloat64) Load() float64

func (*AtomicFloat64) Store

func (b *AtomicFloat64) Store(val float64)

type AtomicTime

type AtomicTime struct {
	atomic.Value
}

func (*AtomicTime) Load

func (t *AtomicTime) Load() time.Time

func (*AtomicTime) Store

func (t *AtomicTime) Store(tm time.Time)

Jump to

Keyboard shortcuts

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