internal/runtime/atomic.Int32.CompareAndSwap (method)
6 uses
internal/runtime/atomic (current package)
types.go#L36: func (i *Int32) CompareAndSwap(old, new int32) bool {
internal/runtime/exithook
hooks.go#L44: for !locked.CompareAndSwap(0, 1) {
hooks.go#L57: for !locked.CompareAndSwap(0, 1) {
runtime
proc.go#L3030: if sched.nmspinning.Load()+sched.npidle.Load() == 0 && sched.nmspinning.CompareAndSwap(0, 1) { // TODO: fast atomic
proc.go#L3093: if sched.nmspinning.Load() != 0 || !sched.nmspinning.CompareAndSwap(0, 1) {
signal_unix.go#L776: if crashing.CompareAndSwap(0, 1) {
![]() |
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. |