func internal/runtime/atomic.Cas
17 uses
internal/runtime/atomic (current package)
stubs.go#L12: func Cas(ptr *uint32, old, new uint32) bool
types.go#L236: return Cas(&u.value, old, new)
xchg8.go#L27: if Cas(addr32, old, (old&^mask)|word) {
runtime
mgcsweep.go#L71: for sOld < sNew && !atomic.Cas((*uint32)(s), uint32(sOld), uint32(sNew)) {
mgcsweep.go#L351: if !atomic.Cas(&s.sweepgen, l.sweepGen-2, l.sweepGen-1) {
proc.go#L2166: if atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L2237: if !atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L2943: if !atomic.Cas(&newmHandoff.haveTemplateThread, 0, 1) {
proc.go#L3168: if pp.runSafePointFn != 0 && atomic.Cas(&pp.runSafePointFn, 1, 0) {
runtime1.go#L217: if !atomic.Cas(&z, 1, 2) {
runtime1.go#L225: if atomic.Cas(&z, 5, 6) {
runtime1.go#L233: if !atomic.Cas(&z, 0xffffffff, 0xfffffffe) {
sema.go#L297: if atomic.Cas(addr, v, v-1) {
signal_unix.go#L205: if atomic.Cas(&handlingSig[sig], 0, 1) {
signal_unix.go#L283: if atomic.Cas(&handlingSig[_SIGPROF], 0, 1) {
signal_unix.go#L319: if atomic.Cas(&handlingSig[_SIGPROF], 1, 0) {
sigqueue.go#L92: if atomic.Cas(&sig.mask[s/32], mask, mask|bit) {
 |
The pages are generated with Golds v0.8.4. (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. |