atomic

package
v0.0.0-...-6ba83c3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool uint32

Bool is an atomic type-safe wrapper for bool values.

func NewBool

func NewBool() *Bool

NewBool create new atomic type-safe bool.

func (*Bool) False

func (a *Bool) False() bool

False returns whether the Boolean is false.

func (*Bool) Set

func (a *Bool) Set()

Set sets the Boolean to true.

func (*Bool) String

func (a *Bool) String() string

String returns a as string.

func (*Bool) True

func (a *Bool) True() bool

True returns whether the Boolean is true.

func (*Bool) UnSet

func (a *Bool) UnSet()

UnSet sets the Boolean to false.

type Uint64

type Uint64 uint64

Uint64 is an atomic type-safe wrapper for uint64 values.

func NewUint64

func NewUint64() *Uint64

NewUint64 create new atomic type-safe uint64

func (*Uint64) Get

func (u *Uint64) Get() uint64

Get atomically gets the value of u.

func (*Uint64) Set

func (u *Uint64) Set(n uint64)

Set atomically stores n into u.

func (*Uint64) String

func (u *Uint64) String() string

String returns u as string.

Jump to

Keyboard shortcuts

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