func runtime/internal/atomic.Cas
23 uses
runtime/internal/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#L84: if atomic.Cas(key32(&l.key), mutex_unlocked, wait) {
lock_futex.go#L94: if atomic.Cas(key32(&l.key), mutex_unlocked, wait) {
mgcsweep.go#L74: for sOld < sNew && !atomic.Cas((*uint32)(s), uint32(sOld), uint32(sNew)) {
mgcsweep.go#L348: if !atomic.Cas(&s.sweepgen, l.sweepGen-2, l.sweepGen-1) {
proc.go#L1373: if s == _Psyscall && atomic.Cas(&pp.status, s, _Pgcstop) {
proc.go#L1786: if atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L1802: if s == _Psyscall && p2.runSafePointFn == 1 && atomic.Cas(&p2.status, s, _Pidle) {
proc.go#L1857: if !atomic.Cas(&p.runSafePointFn, 1, 0) {
proc.go#L2471: if !atomic.Cas(&newmHandoff.haveTemplateThread, 0, 1) {
proc.go#L2695: if pp.runSafePointFn != 0 && atomic.Cas(&pp.runSafePointFn, 1, 0) {
proc.go#L4081: if sched.stopwait > 0 && atomic.Cas(&pp.status, _Psyscall, _Pgcstop) {
proc.go#L4249: if oldp != nil && oldp.status == _Psyscall && atomic.Cas(&oldp.status, _Psyscall, _Pidle) {
proc.go#L5724: 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#L239: 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.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. |