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#L98: if rw.readerCount.CompareAndSwap(c, c+1) {
rwmutex.go#L178: if !rw.readerCount.CompareAndSwap(0, -rwmutexMaxReaders) {
crypto/tls
conn.go#L1203: if c.activeCall.CompareAndSwap(x, x+2) {
conn.go#L1423: if c.activeCall.CompareAndSwap(x, x|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. |