func sync/atomic.CompareAndSwapUint32
14 uses
sync/atomic (current package)
doc.go#L80: func CompareAndSwapUint32(addr *uint32, old, new uint32) (swapped bool)
github.com/go-redis/redis/v8
cluster.go#L241: if gen < v || atomic.CompareAndSwapUint32(&n.generation, v, gen) {
cluster.go#L632: if !atomic.CompareAndSwapUint32(&c.reloading, 0, 1) {
github.com/go-redis/redis/v8/internal/pool
pool.go#L427: if !atomic.CompareAndSwapUint32(&p._closed, 0, 1) {
pool_sticky.go#L77: if atomic.CompareAndSwapUint32(&p.state, stateDefault, stateInited) {
pool_sticky.go#L136: if atomic.CompareAndSwapUint32(&p.state, state, stateClosed) {
pool_sticky.go#L165: if !atomic.CompareAndSwapUint32(&p.state, stateInited, stateDefault) {
golang.org/x/net/http2
transport.go#L476: reused := !atomic.CompareAndSwapUint32(&cc.reused, 0, 1)
google.golang.org/grpc/internal/transport
http2_client.go#L601: if atomic.CompareAndSwapUint32(&s.headerChanClosed, 0, 1) {
http2_client.go#L763: if atomic.CompareAndSwapUint32(&s.headerChanClosed, 0, 1) {
http2_client.go#L1237: if atomic.CompareAndSwapUint32(&s.headerChanClosed, 0, 1) {
http2_server.go#L716: if atomic.CompareAndSwapUint32(&t.resetPingStrikes, 1, 0) {
transport.go#L308: return atomic.CompareAndSwapUint32((*uint32)(&s.state), uint32(oldState), uint32(newState))
net/http
h2_bundle.go#L6979: reused := !atomic.CompareAndSwapUint32(&cc.reused, 0, 1)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |