atomic2

package
v0.0.0-...-70285c8 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration int64

func (*Duration) Add

func (d *Duration) Add(duration time.Duration) time.Duration

func (*Duration) CompareAndSwap

func (d *Duration) CompareAndSwap(oldval, newval time.Duration) (swapped bool)

func (*Duration) Get

func (d *Duration) Get() time.Duration

func (*Duration) Set

func (d *Duration) Set(duration time.Duration)

type Int64

type Int64 int64

func (*Int64) Add

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

func (*Int64) CompareAndSwap

func (a *Int64) CompareAndSwap(oldval, newval int64) (swapped bool)

func (*Int64) Decr

func (a *Int64) Decr() int64

func (*Int64) Get

func (a *Int64) Get() int64

func (*Int64) Incr

func (a *Int64) Incr() int64

func (*Int64) Reset

func (a *Int64) Reset() int64

func (*Int64) Set

func (a *Int64) Set(v int64)

func (*Int64) Sub

func (a *Int64) Sub(v int64) int64

type String

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

func (*String) CompareAndSwap

func (s *String) CompareAndSwap(oldval, newval string) (swqpped bool)

func (*String) Get

func (s *String) Get() string

func (*String) Set

func (s *String) Set(str string)

func (*String) String

func (s *String) String() string

Jump to

Keyboard shortcuts

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