internal/runtime/atomic.Uint32.Swap (method)

5 uses

	internal/runtime/atomic (current package)
		types.go#L257: func (u *Uint32) Swap(value uint32) uint32 {

	runtime
		mcleanup.go#L578: 	need := min(q.needg.Swap(0), maxCleanupGs()-have)
		mgclimit.go#L306: 	old := l.lock.Swap(0)
		mstats.go#L871: 	m.gen.Swap((currGen + 1) % 3)
		proc.go#L2498: 	c := extraMWaiters.Swap(0)