atomic

package
v2.8.6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicBool

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

func NewAtomicBool

func NewAtomicBool(init bool) *AtomicBool

func (*AtomicBool) Get

func (b *AtomicBool) Get() bool

func (*AtomicBool) Set

func (b *AtomicBool) Set(value bool)

type AtomicInt

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

func NewAtomicInt

func NewAtomicInt(init int) *AtomicInt

func (*AtomicInt) DecAndGet

func (b *AtomicInt) DecAndGet() int

func (*AtomicInt) Get

func (b *AtomicInt) Get() int

func (*AtomicInt) IncAndGet

func (b *AtomicInt) IncAndGet() int

func (*AtomicInt) Set

func (b *AtomicInt) Set(value int)

Jump to

Keyboard shortcuts

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