func internal/runtime/atomic.Cas
23 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)
runtime
lock_futex.go#L90: if atomic.Cas(key32(&l.key), mutex_unlocked, wait) {
lock_futex.go#L101: if atomic.Cas(key32(&l.key), mutex_unlocked, wait) {
mgcsweep.go#L72: for sOld < sNew && !atomic.Cas((*uint32)(s), uint32(sOld), uint32(sNew)) {
mgcsweep.go#L344: if !atomic.Cas(&s.sweepgen, l.sweepGen-2, l.sweepGen-1) {
proc.go#L1564: if s == _Psyscall && atomic.Cas(&pp.status, s, _Pgcstop) {
proc.go#L2051: if atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L2071: if s == _Psyscall && p2.runSafePointFn == 1 && atomic.Cas(&p2.status, s, _Pidle) {
proc.go#L2129: if !atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L2821: if !atomic.Cas(&newmHandoff.haveTemplateThread, 0, 1) {
proc.go#L3046: if pp.runSafePointFn != 0 && atomic.Cas(&pp.runSafePointFn, 1, 0) {
proc.go#L4504: if sched.stopwait > 0 && atomic.Cas(&pp.status, _Psyscall, _Pgcstop) {
proc.go#L4712: if oldp != nil && oldp.status == _Psyscall && atomic.Cas(&oldp.status, _Psyscall, _Pidle) {
proc.go#L6258: if atomic.Cas(&pp.status, s, _Pidle) {
runtime1.go#L220: if !atomic.Cas(&z, 1, 2) {
runtime1.go#L228: if atomic.Cas(&z, 5, 6) {
runtime1.go#L236: if !atomic.Cas(&z, 0xffffffff, 0xfffffffe) {
sema.go#L278: if atomic.Cas(addr, v, v-1) {
signal_unix.go#L204: if atomic.Cas(&handlingSig[sig], 0, 1) {
signal_unix.go#L282: if atomic.Cas(&handlingSig[_SIGPROF], 0, 1) {
signal_unix.go#L318: 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.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. |