atomic

package
v0.0.0-...-730ab85 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 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 Int32

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

Int32 atomic int32

func (*Int32) Add

func (u *Int32) Add(value int32) int32

Add add atomic int32

func (*Int32) Get

func (u *Int32) Get() int32

Get returns atomic int32

func (*Int32) Incr

func (u *Int32) Incr() int32

Incr incr atomic int32

func (*Int32) Set

func (u *Int32) Set(value int32)

Set atomic set int32

type Int64

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

Int64 atomic int32

func (*Int64) Add

func (u *Int64) Add(value int64) int64

Add add atomic int32

func (*Int64) Get

func (u *Int64) Get() int64

Get returns atomic int64

func (*Int64) Incr

func (u *Int64) Incr() int64

Incr incr atomic int64

func (*Int64) Set

func (u *Int64) Set(value int64)

Set atomic set int64

type Uint32

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

Uint32 atomic uint64

func (*Uint32) Add

func (u *Uint32) Add(value uint32) uint32

Add add atomic int32

func (*Uint32) Get

func (u *Uint32) Get() uint32

Get returns atomic uint32

func (*Uint32) Incr

func (u *Uint32) Incr() uint32

Incr incr atomic uint32

func (*Uint32) Set

func (u *Uint32) Set(value uint32)

Set atomic set uint32

type Uint64

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

Uint64 atomic uint64

func (*Uint64) Add

func (u *Uint64) Add(value uint64) uint64

Add add atomic uint64

func (*Uint64) Get

func (u *Uint64) Get() uint64

Get returns atomic uint64

func (*Uint64) Incr

func (u *Uint64) Incr() uint64

Incr incr atomic uint64

func (*Uint64) Set

func (u *Uint64) Set(value uint64)

Set atomic set uint64

Jump to

Keyboard shortcuts

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