func sync/atomic.CompareAndSwapPointer
7 uses
sync/atomic (current package)
doc.go#L109: func CompareAndSwapPointer(addr *unsafe.Pointer, old, new unsafe.Pointer) (swapped bool)
type.go#L68: return CompareAndSwapPointer(&x.v, unsafe.Pointer(old), unsafe.Pointer(new))
value.go#L60: if !CompareAndSwapPointer(&vp.typ, nil, unsafe.Pointer(&firstStoreInProgress)) {
value.go#L103: if !CompareAndSwapPointer(&vp.typ, nil, unsafe.Pointer(&firstStoreInProgress)) {
value.go#L154: if !CompareAndSwapPointer(&vp.typ, nil, unsafe.Pointer(&firstStoreInProgress)) {
value.go#L186: return CompareAndSwapPointer(&vp.data, data, np.data)
go.uber.org/atomic
unsafe_pointer.go#L64: return atomic.CompareAndSwapPointer(&p.v, old, new)
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |