Documentation ¶
Index ¶
- type Bool
- type Int
- type Int32
- func (p *Int32) Add(v int32) int32
- func (p *Int32) CompareAndSwap(old, new int32) bool
- func (p *Int32) Load() int32
- func (p *Int32) SetGreater(v int32) int32
- func (p *Int32) SetLesser(v int32) int32
- func (p *Int32) Store(v int32)
- func (p *Int32) String() string
- func (p *Int32) Sub(v int32) int32
- func (p *Int32) Swap(v int32) int32
- type Int64
- func (p *Int64) Add(v int64) int64
- func (p *Int64) CompareAndSwap(old, new int64) bool
- func (p *Int64) Load() int64
- func (p *Int64) SetGreater(v int64) int64
- func (p *Int64) SetLesser(v int64) int64
- func (p *Int64) Store(v int64)
- func (p *Int64) String() string
- func (p *Int64) Sub(v int64) int64
- func (p *Int64) Swap(v int64) int64
- type Once
- type OnceByteString
- func (p *OnceByteString) CompareAndStore(new longbits.ByteString) bool
- func (p *OnceByteString) Load() longbits.ByteString
- func (p *OnceByteString) MustStore(v longbits.ByteString)
- func (p *OnceByteString) StoreOnce(v longbits.ByteString) bool
- func (p *OnceByteString) String() string
- func (p *OnceByteString) TryLoad() (longbits.ByteString, bool)
- type OnceFlag
- type StartStopFlag
- func (p *StartStopFlag) DoDiscard(discardFn, stopFn func()) bool
- func (p *StartStopFlag) DoDiscardByOne(fn func(wasStarted bool)) bool
- func (p *StartStopFlag) DoStart(f func()) bool
- func (p *StartStopFlag) DoStop(f func()) bool
- func (p *StartStopFlag) IsActive() bool
- func (p *StartStopFlag) IsStarting() bool
- func (p *StartStopFlag) IsStopped() bool
- func (p *StartStopFlag) IsStopping() bool
- func (p *StartStopFlag) Start() bool
- func (p *StartStopFlag) Status() (isActive, wasStarted bool)
- func (p *StartStopFlag) Stop() bool
- func (p *StartStopFlag) WasStarted() bool
- func (p *StartStopFlag) WasStopped() bool
- type Uint
- func (p *Uint) Add(v uint) uint
- func (p *Uint) CompareAndSetBits(maskOut, deny, v uint) bool
- func (p *Uint) CompareAndSub(v uint) bool
- func (p *Uint) CompareAndSwap(old, new uint) bool
- func (p *Uint) Load() uint
- func (p *Uint) SetBits(v uint) uint
- func (p *Uint) SetGreater(v uint) uint
- func (p *Uint) SetLesser(v uint) uint
- func (p *Uint) Store(v uint)
- func (p *Uint) String() string
- func (p *Uint) Sub(v uint) uint
- func (p *Uint) Swap(v uint) uint
- func (p *Uint) TrySetBits(v uint, all bool) bool
- func (p *Uint) TryUnsetBits(v uint, all bool) bool
- func (p *Uint) UnsetBits(v uint) uint
- type Uint32
- func (p *Uint32) Add(v uint32) uint32
- func (p *Uint32) CompareAndSetBits(maskOut, deny, v uint32) bool
- func (p *Uint32) CompareAndSub(v uint32) bool
- func (p *Uint32) CompareAndSwap(old, new uint32) bool
- func (p *Uint32) Load() uint32
- func (p *Uint32) SetBits(v uint32) uint32
- func (p *Uint32) SetGreater(v uint32) uint32
- func (p *Uint32) SetLesser(v uint32) uint32
- func (p *Uint32) Store(v uint32)
- func (p *Uint32) String() string
- func (p *Uint32) Sub(v uint32) uint32
- func (p *Uint32) Swap(v uint32) uint32
- func (p *Uint32) TrySetBits(v uint32, all bool) bool
- func (p *Uint32) TryUnsetBits(v uint32, all bool) bool
- func (p *Uint32) UnsetBits(v uint32) uint32
- type Uint64
- func (p *Uint64) Add(v uint64) uint64
- func (p *Uint64) CompareAndSetBits(maskOut, deny, v uint64) bool
- func (p *Uint64) CompareAndSub(v uint64) bool
- func (p *Uint64) CompareAndSwap(old, new uint64) bool
- func (p *Uint64) Load() uint64
- func (p *Uint64) SetBits(v uint64) uint64
- func (p *Uint64) SetGreater(v uint64) uint64
- func (p *Uint64) SetLesser(v uint64) uint64
- func (p *Uint64) Store(v uint64)
- func (p *Uint64) String() string
- func (p *Uint64) Sub(v uint64) uint64
- func (p *Uint64) Swap(v uint64) uint64
- func (p *Uint64) TrySetBits(v uint64, all bool) bool
- func (p *Uint64) TryUnsetBits(v uint64, all bool) bool
- func (p *Uint64) UnsetBits(v uint64) uint64
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) CompareAndFlip ¶
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
func (*Int) CompareAndSwap ¶
func (*Int) SetGreater ¶
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
func (*Int32) CompareAndSwap ¶
func (*Int32) SetGreater ¶
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
func (*Int64) CompareAndSwap ¶
func (*Int64) SetGreater ¶
type Once ¶
type Once struct {
// contains filtered or unexported fields
}
func (*Once) DoWithValue ¶
type OnceByteString ¶
type OnceByteString struct {
// contains filtered or unexported fields
}
func NewOnceByteString ¶
func NewOnceByteString(v longbits.ByteString) OnceByteString
func (*OnceByteString) CompareAndStore ¶
func (p *OnceByteString) CompareAndStore(new longbits.ByteString) bool
func (*OnceByteString) Load ¶
func (p *OnceByteString) Load() longbits.ByteString
func (*OnceByteString) MustStore ¶
func (p *OnceByteString) MustStore(v longbits.ByteString)
func (*OnceByteString) StoreOnce ¶
func (p *OnceByteString) StoreOnce(v longbits.ByteString) bool
func (*OnceByteString) String ¶
func (p *OnceByteString) String() string
func (*OnceByteString) TryLoad ¶
func (p *OnceByteString) TryLoad() (longbits.ByteString, bool)
type StartStopFlag ¶
type StartStopFlag struct {
// contains filtered or unexported fields
}
func (*StartStopFlag) DoDiscard ¶
func (p *StartStopFlag) DoDiscard(discardFn, stopFn func()) bool
func (*StartStopFlag) DoDiscardByOne ¶
func (p *StartStopFlag) DoDiscardByOne(fn func(wasStarted bool)) bool
func (*StartStopFlag) DoStart ¶
func (p *StartStopFlag) DoStart(f func()) bool
func (*StartStopFlag) DoStop ¶
func (p *StartStopFlag) DoStop(f func()) bool
func (*StartStopFlag) IsActive ¶
func (p *StartStopFlag) IsActive() bool
func (*StartStopFlag) IsStarting ¶
func (p *StartStopFlag) IsStarting() bool
func (*StartStopFlag) IsStopped ¶
func (p *StartStopFlag) IsStopped() bool
func (*StartStopFlag) IsStopping ¶
func (p *StartStopFlag) IsStopping() bool
func (*StartStopFlag) Start ¶
func (p *StartStopFlag) Start() bool
func (*StartStopFlag) Status ¶
func (p *StartStopFlag) Status() (isActive, wasStarted bool)
func (*StartStopFlag) Stop ¶
func (p *StartStopFlag) Stop() bool
func (*StartStopFlag) WasStarted ¶
func (p *StartStopFlag) WasStarted() bool
func (*StartStopFlag) WasStopped ¶
func (p *StartStopFlag) WasStopped() bool
type Uint ¶
type Uint struct {
// contains filtered or unexported fields
}
func (*Uint) CompareAndSetBits ¶
func (*Uint) CompareAndSub ¶
func (*Uint) CompareAndSwap ¶
func (*Uint) SetGreater ¶
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
func (*Uint32) CompareAndSetBits ¶
func (*Uint32) CompareAndSub ¶
func (*Uint32) CompareAndSwap ¶
func (*Uint32) SetGreater ¶
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
func (*Uint64) CompareAndSetBits ¶
func (*Uint64) CompareAndSub ¶
func (*Uint64) CompareAndSwap ¶
func (*Uint64) SetGreater ¶
Click to show internal directories.
Click to hide internal directories.