sync/atomic.Int32.CompareAndSwap (method)
5 uses
sync/atomic (current package)
type.go#L83: func (x *Int32) CompareAndSwap(old, new int32) (swapped bool) {
sync
rwmutex.go#L97: if rw.readerCount.CompareAndSwap(c, c+1) {
rwmutex.go#L177: if !rw.readerCount.CompareAndSwap(0, -rwmutexMaxReaders) {
crypto/tls
conn.go#L1187: if c.activeCall.CompareAndSwap(x, x+2) {
conn.go#L1407: if c.activeCall.CompareAndSwap(x, x|1) {
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. |