Please enable JavaScript.
Coggle requires JavaScript to display documents.
golang语言标准库之sync/atomic (doc.go (对比交换操作 (CompareAndSwapInt32,…
golang语言标准库之sync/atomic
Value.go
struct
Value
方法
Load
Store
成员
v interface{}
ifaceWords
成员
typ unsafe.Pointer
data unsafe.Pointer
方法
runtime_procPin
runtime_procUnpin
asm.s
race.s
doc.go
交换值方法
SwapInt32
SwapInt64
SwapUint32
SwapUint64
SwapUintptr
SwapPointer
初始化方法
LoadInt32
LoadInt64
LoadUint32
LoadUint64
LoadUintptr
LoadPointer
赋值方法
StoreInt32
StoreInt64
StoreUint32
StoreUint64
StoreUintptr
StorePointer
加法操作
AddInt32
AddUint32
AddInt64
AddUint64
AddUintptr
对比交换操作
CompareAndSwapInt32
CompareAndSwapInt64
CompareAndSwapUint32
CompareAndSwapUint64
CompareAndSwapUintptr
CompareAndSwapPointer
判断内存中的某个值是否等于old值,如果是的话,则赋new值给这块内存