runtime/internal/atomic.Uintptr.CompareAndSwap (method)
6 uses
runtime/internal/atomic (current package)
types.go#L400: func (u *Uintptr) CompareAndSwap(old, new uintptr) bool {
runtime
mheap.go#L818: if h.reclaimCredit.CompareAndSwap(credit, credit-take) {
netpoll.go#L546: if gpp.CompareAndSwap(pdReady, pdNil) {
netpoll.go#L549: if gpp.CompareAndSwap(pdNil, pdWait) {
netpoll.go#L594: if gpp.CompareAndSwap(old, new) {
proc.go#L2292: if extraM.CompareAndSwap(old, locked) {
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. |