package atomic
import "github.com/Azure/azure-sdk-for-go/sdk/internal/atomic"
Index ¶
- type Int64
- func NewInt64(i int64) Int64
- func (i *Int64) CAS(old, new int64) bool
- func (i *Int64) Load() int64
- func (i *Int64) Store(v int64)
- type String
- type Time
Types ¶
type Int64 ¶
type Int64 int64
Int64 is an atomic wrapper around an int64.
func NewInt64 ¶
NewInt64 creates a new Int64.
func (*Int64) CAS ¶
CAS is an atomic compare-and-swap.
func (*Int64) Load ¶
Load atomically loads the value.
func (*Int64) Store ¶
Store atomically stores the value.
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is an atomic wrapper around a string.
func NewString ¶
NewString creats a new String.
func (*String) Load ¶
Load atomically loads the string.
func (*String) Store ¶
Store atomically stores the string.
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Time is an atomic wrapper around a time.Time.
func NewTime ¶
NewTime creates a new Time.
func (*Time) Load ¶
Load atomically loads the time.Time.
func (*Time) Store ¶
Store atomically stores the time.Time.
Source Files ¶
- Version
- v0.1.0
- Published
- Jan 10, 2020
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- now –
Tools for package owners.