internal/runtime/atomic.Uintptr.CompareAndSwap (method)
6 uses
internal/runtime/atomic (current package)
types.go#L400: func (u *Uintptr) CompareAndSwap(old, new uintptr) bool {
runtime
mheap.go#L808: if h.reclaimCredit.CompareAndSwap(credit, credit-take) {
netpoll.go#L557: if gpp.CompareAndSwap(pdReady, pdNil) {
netpoll.go#L560: if gpp.CompareAndSwap(pdNil, pdWait) {
netpoll.go#L611: if gpp.CompareAndSwap(old, new) {
proc.go#L2642: if extraM.CompareAndSwap(old, locked) {
![]() |
The pages are generated with Golds v0.7.6. (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. |