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)
Click to show internal directories.
Click to hide internal directories.