Documentation ¶
Index ¶
- type Counter
- func (counter *Counter) Add(value int64) int64
- func (counter *Counter) Decrement() int64
- func (counter *Counter) Get() int64
- func (counter *Counter) GetUint64() uint64
- func (counter *Counter) Increment() int64
- func (counter *Counter) Reset() int64
- func (counter *Counter) Set(value int64)
- func (counter *Counter) Subtract(value int64) int64
- type Flag
- type Int64
- type String
- type Uint32
- type Uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is an atomic counter
type Flag ¶
type Flag struct {
// contains filtered or unexported fields
}
Flag is an atomic flag
func (*Flag) Reset ¶ added in v0.0.3
func (flag *Flag) Reset()
Reset resets the flag, putting it in off position
func (*Flag) SetReturningPrevious ¶ added in v0.0.3
SetReturningPrevious sets flag and returns its previous value
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
Int64 is a wrapper for atomic operations on int64
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is a wrapper for atomic operations on String
Click to show internal directories.
Click to hide internal directories.