atomic

package
v0.0.0-...-7b3ddb2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 1 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 struct {
	// contains filtered or unexported fields
}

func NewAtomicBool

func NewAtomicBool(v bool) *AtomicBool

func (*AtomicBool) CompareAndSet

func (b *AtomicBool) CompareAndSet(expect, update bool) bool

func (*AtomicBool) Get

func (b *AtomicBool) Get() bool

func (*AtomicBool) Set

func (b *AtomicBool) Set(newValue bool)

type AtomicInt64

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

func NewAtomicInt64

func NewAtomicInt64(v int64) *AtomicInt64

func (*AtomicInt64) Add

func (a *AtomicInt64) Add(v int64) int64

func (*AtomicInt64) CompareAndSwap

func (a *AtomicInt64) CompareAndSwap(o, n int64) bool

func (*AtomicInt64) Decr

func (a *AtomicInt64) Decr() int64

func (*AtomicInt64) Get

func (a *AtomicInt64) Get() int64

func (*AtomicInt64) Incr

func (a *AtomicInt64) Incr() int64

func (*AtomicInt64) Set

func (a *AtomicInt64) Set(v int64)

Jump to

Keyboard shortcuts

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