func sync/atomic.CompareAndSwapPointer
9 uses
sync/atomic (current package)
doc.go#L114: func CompareAndSwapPointer(addr *unsafe.Pointer, old, new unsafe.Pointer) (swapped bool)
type.go#L64: return CompareAndSwapPointer(&x.v, unsafe.Pointer(old), unsafe.Pointer(new))
value.go#L60: if !CompareAndSwapPointer(&vp.typ, nil, unsafe.Pointer(&firstStoreInProgress)) {
value.go#L104: if !CompareAndSwapPointer(&vp.typ, nil, unsafe.Pointer(&firstStoreInProgress)) {
value.go#L156: if !CompareAndSwapPointer(&vp.typ, nil, unsafe.Pointer(&firstStoreInProgress)) {
value.go#L188: return CompareAndSwapPointer(&vp.data, data, np.data)
sync
poolqueue.go#L300: if atomic.CompareAndSwapPointer((*unsafe.Pointer)(unsafe.Pointer(&c.tail)), unsafe.Pointer(d), unsafe.Pointer(d2)) {
go.uber.org/atomic
unsafe_pointer.go#L64: return atomic.CompareAndSwapPointer(&p.v, old, new)
internal/bisect
bisect.go#L329: return atomic.CompareAndSwapPointer(&p.p, unsafe.Pointer(old), unsafe.Pointer(new))
|
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |