nazaatomic

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 1 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

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

func (*Bool) CompareAndSwap

func (obj *Bool) CompareAndSwap(old bool, new bool) (swapped bool)

func (*Bool) Load

func (obj *Bool) Load() bool

func (*Bool) Store

func (obj *Bool) Store(val bool)

func (*Bool) Swap

func (obj *Bool) Swap(new bool) (old bool)

type Int32

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

func (*Int32) Add

func (obj *Int32) Add(delta int32) (new int32)

func (*Int32) CompareAndSwap

func (obj *Int32) CompareAndSwap(old int32, new int32) (swapped bool)

func (*Int32) Decrement

func (obj *Int32) Decrement() (new int32)

func (*Int32) Increment

func (obj *Int32) Increment() (new int32)

func (*Int32) Load

func (obj *Int32) Load() int32

func (*Int32) Store

func (obj *Int32) Store(val int32)

func (*Int32) Sub

func (obj *Int32) Sub(delta int32) (new int32)

@param delta 举例,传入3,则减3

func (*Int32) Swap

func (obj *Int32) Swap(new int32) (old int32)

type Int64

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

func (*Int64) Add

func (obj *Int64) Add(delta int64) (new int64)

func (*Int64) CompareAndSwap

func (obj *Int64) CompareAndSwap(old int64, new int64) (swapped bool)

func (*Int64) Decrement

func (obj *Int64) Decrement() (new int64)

func (*Int64) Increment

func (obj *Int64) Increment() (new int64)

func (*Int64) Load

func (obj *Int64) Load() int64

func (*Int64) Store

func (obj *Int64) Store(val int64)

func (*Int64) Sub

func (obj *Int64) Sub(delta int64) (new int64)

@param delta 举例,传入3,则减3

func (*Int64) Swap

func (obj *Int64) Swap(new int64) (old int64)

type Uint32

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

func (*Uint32) Add

func (obj *Uint32) Add(delta uint32) (new uint32)

func (*Uint32) CompareAndSwap

func (obj *Uint32) CompareAndSwap(old uint32, new uint32) (swapped bool)

func (*Uint32) Decrement

func (obj *Uint32) Decrement() (new uint32)

func (*Uint32) Increment

func (obj *Uint32) Increment() (new uint32)

func (*Uint32) Load

func (obj *Uint32) Load() uint32

func (*Uint32) Store

func (obj *Uint32) Store(val uint32)

func (*Uint32) Sub

func (obj *Uint32) Sub(delta uint32) (new uint32)

@param delta 举例,传入3,则减3

func (*Uint32) Swap

func (obj *Uint32) Swap(new uint32) (old uint32)

type Uint64

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

func (*Uint64) Add

func (obj *Uint64) Add(delta uint64) (new uint64)

func (*Uint64) CompareAndSwap

func (obj *Uint64) CompareAndSwap(old uint64, new uint64) (swapped bool)

func (*Uint64) Decrement

func (obj *Uint64) Decrement() (new uint64)

func (*Uint64) Increment

func (obj *Uint64) Increment() (new uint64)

func (*Uint64) Load

func (obj *Uint64) Load() uint64

func (*Uint64) Store

func (obj *Uint64) Store(val uint64)

func (*Uint64) Sub

func (obj *Uint64) Sub(delta uint64) (new uint64)

@param delta 举例,传入3,则减3

func (*Uint64) Swap

func (obj *Uint64) Swap(new uint64) (old uint64)

Jump to

Keyboard shortcuts

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