func runtime/internal/atomic.Xchg
7 uses
runtime/internal/atomic (current package)
atomic_amd64.go#L61: func Xchg(ptr *uint32, new uint32) uint32
types.go#L258: return Xchg(&u.value, value)
runtime
lock_futex.go#L60: v := atomic.Xchg(key32(&l.key), mutex_locked)
lock_futex.go#L102: v = atomic.Xchg(key32(&l.key), mutex_sleeping)
lock_futex.go#L116: v := atomic.Xchg(key32(&l.key), mutex_unlocked)
lock_futex.go#L140: old := atomic.Xchg(key32(&n.key), 1)
sigqueue.go#L165: sig.recv[i] = atomic.Xchg(&sig.mask[i], 0)
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. |