Documentation
¶
Overview ¶
Package atomic 封装标准库 atomic 包的操作函数。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
func (*Int32) CompareAndSwap ¶
CompareAndSwap wrapper for atomic.CompareAndSwapInt32.
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
func (*Int64) CompareAndSwap ¶
CompareAndSwap wrapper for atomic.CompareAndSwapInt64.
type Pointer ¶ added in v1.1.2
type Pointer struct {
// contains filtered or unexported fields
}
func NewPointer ¶
func (*Pointer) CompareAndSwap ¶ added in v1.1.2
CompareAndSwap wrapper for atomic.CompareAndSwapPointer.
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
func (*Uint32) CompareAndSwap ¶
CompareAndSwap wrapper for atomic.CompareAndSwapUint32.
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
func (*Uint64) CompareAndSwap ¶
CompareAndSwap wrapper for atomic.CompareAndSwapUint64.
type Uintptr ¶
type Uintptr struct {
// contains filtered or unexported fields
}
func NewUintptr ¶
func (*Uintptr) CompareAndSwap ¶
CompareAndSwap wrapper for atomic.CompareAndSwapUintptr.
Click to show internal directories.
Click to hide internal directories.