Documentation ¶
Overview ¶
Package atomicx contains atomic int64/float64 that work also on 32 bit platforms. The main reason for rolling out this package is to avoid potential crashes when using 32 bit devices where we are atomically accessing a 64 bit variable that is not aligned. The solution to this issue is rather crude: use a normal variable and protect it using a normal mutex. While this could be disappointing in general, it seems fine to be done in our context where we mainly use atomic semantics for counting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Float64 ¶
type Float64 struct {
// contains filtered or unexported fields
}
Float64 is an float64 with atomic semantics.
func NewFloat64 ¶
func NewFloat64() *Float64
NewFloat64 creates a new float64 with atomic semantics.
Click to show internal directories.
Click to hide internal directories.