beats: github.com/elastic/beats/libbeat/common/atomic Index | Files

package atomic

import "github.com/elastic/beats/libbeat/common/atomic"

Package atomic provides common primitive types with atomic accessors.

Index

Package Files

atomic.go atomic64.go

type Bool Uses

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

Bool provides an atomic boolean type.

func MakeBool Uses

func MakeBool(v bool) Bool

func NewBool Uses

func NewBool(v bool) *Bool

func (*Bool) CAS Uses

func (b *Bool) CAS(old, new bool) bool

func (*Bool) Load Uses

func (b *Bool) Load() bool

func (*Bool) Store Uses

func (b *Bool) Store(v bool)

func (*Bool) Swap Uses

func (b *Bool) Swap(new bool) bool

type Int Uses

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

Int provides an architecture specific atomic uint.

func MakeInt Uses

func MakeInt(v int) Int

func NewInt Uses

func NewInt(v int) *Int

func (*Int) Add Uses

func (i *Int) Add(delta int) int

func (*Int) CAS Uses

func (i *Int) CAS(old, new int) bool

func (*Int) Dec Uses

func (i *Int) Dec() int

func (*Int) Inc Uses

func (i *Int) Inc() int

func (*Int) Load Uses

func (i *Int) Load() int

func (*Int) Store Uses

func (i *Int) Store(v int)

func (*Int) Sub Uses

func (i *Int) Sub(delta int) int

func (*Int) Swap Uses

func (i *Int) Swap(new int) int

type Int32 Uses

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

Int32 provides an atomic int32 type.

func MakeInt32 Uses

func MakeInt32(v int32) Int32

func NewInt32 Uses

func NewInt32(v int32) *Int32

func (*Int32) Add Uses

func (i *Int32) Add(delta int32) int32

func (*Int32) CAS Uses

func (i *Int32) CAS(old, new int32) bool

func (*Int32) Dec Uses

func (i *Int32) Dec() int32

func (*Int32) Inc Uses

func (i *Int32) Inc() int32

func (*Int32) Load Uses

func (i *Int32) Load() int32

func (*Int32) Store Uses

func (i *Int32) Store(v int32)

func (*Int32) Sub Uses

func (i *Int32) Sub(delta int32) int32

func (*Int32) Swap Uses

func (i *Int32) Swap(new int32) int32

type Int64 Uses

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

Int64 provides an atomic int64 type.

func MakeInt64 Uses

func MakeInt64(v int64) Int64

func NewInt64 Uses

func NewInt64(v int64) *Int64

func (*Int64) Add Uses

func (i *Int64) Add(delta int64) int64

func (*Int64) CAS Uses

func (i *Int64) CAS(old, new int64) bool

func (*Int64) Dec Uses

func (i *Int64) Dec() int64

func (*Int64) Inc Uses

func (i *Int64) Inc() int64

func (*Int64) Load Uses

func (i *Int64) Load() int64

func (*Int64) Store Uses

func (i *Int64) Store(v int64)

func (*Int64) Sub Uses

func (i *Int64) Sub(delta int64) int64

func (*Int64) Swap Uses

func (i *Int64) Swap(new int64) int64

type Uint Uses

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

Uint provides an architecture specific atomic uint.

func MakeUint Uses

func MakeUint(v uint) Uint

func NewUint Uses

func NewUint(v uint) *Uint

func (*Uint) Add Uses

func (u *Uint) Add(delta uint) uint

func (*Uint) CAS Uses

func (u *Uint) CAS(old, new uint) bool

func (*Uint) Dec Uses

func (u *Uint) Dec() uint

func (*Uint) Inc Uses

func (u *Uint) Inc() uint

func (*Uint) Load Uses

func (u *Uint) Load() uint

func (*Uint) Store Uses

func (u *Uint) Store(v uint)

func (*Uint) Sub Uses

func (u *Uint) Sub(delta uint) uint

func (*Uint) Swap Uses

func (u *Uint) Swap(new uint) uint

type Uint32 Uses

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

Uint32 provides an atomic uint32 type.

func MakeUint32 Uses

func MakeUint32(v uint32) Uint32

func NewUint32 Uses

func NewUint32(v uint32) *Uint32

func (*Uint32) Add Uses

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

func (*Uint32) CAS Uses

func (u *Uint32) CAS(old, new uint32) bool

func (*Uint32) Dec Uses

func (u *Uint32) Dec() uint32

func (*Uint32) Inc Uses

func (u *Uint32) Inc() uint32

func (*Uint32) Load Uses

func (u *Uint32) Load() uint32

func (*Uint32) Store Uses

func (u *Uint32) Store(v uint32)

func (*Uint32) Sub Uses

func (u *Uint32) Sub(delta uint32) uint32

func (*Uint32) Swap Uses

func (u *Uint32) Swap(new uint32) uint32

type Uint64 Uses

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

Uint64 provides an atomic uint64 type.

func MakeUint64 Uses

func MakeUint64(v uint64) Uint64

func NewUint64 Uses

func NewUint64(v uint64) *Uint64

func (*Uint64) Add Uses

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

func (*Uint64) CAS Uses

func (u *Uint64) CAS(old, new uint64) bool

func (*Uint64) Dec Uses

func (u *Uint64) Dec() uint64

func (*Uint64) Inc Uses

func (u *Uint64) Inc() uint64

func (*Uint64) Load Uses

func (u *Uint64) Load() uint64

func (*Uint64) Store Uses

func (u *Uint64) Store(v uint64)

func (*Uint64) Sub Uses

func (u *Uint64) Sub(delta uint64) uint64

func (*Uint64) Swap Uses

func (u *Uint64) Swap(new uint64) uint64

Package atomic imports 1 packages (graph) and is imported by 155 packages. Updated 2018-06-25. Refresh now. Tools for package owners.