func sync/atomic.CompareAndSwapInt32
15 uses
sync/atomic (current package)
doc.go#L74: func CompareAndSwapInt32(addr *int32, old, new int32) (swapped bool)
sync
mutex.go#L74: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L98: atomic.CompareAndSwapInt32(&m.state, old, old|mutexWoken) {
mutex.go#L129: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L212: if atomic.CompareAndSwapInt32(&m.state, old, new) {
crypto/rand
rand_unix.go#L55: if atomic.CompareAndSwapInt32(&r.used, 0, 1) {
crypto/tls
conn.go#L1105: if atomic.CompareAndSwapInt32(&c.activeCall, x, x+2) {
conn.go#L1314: if atomic.CompareAndSwapInt32(&c.activeCall, x, x|1) {
database/sql
sql.go#L1989: if !atomic.CompareAndSwapInt32(&c.done, 0, 1) {
sql.go#L2157: if !atomic.CompareAndSwapInt32(&tx.done, 0, 1) {
sql.go#L2185: if !atomic.CompareAndSwapInt32(&tx.done, 0, 1) {
github.com/aws/aws-sdk-go/aws/request
request_pagination.go#L195: if atomic.CompareAndSwapInt32(flag, 0, 1) {
github.com/lib/pq
notify.go#L126: return atomic.CompareAndSwapInt32(&l.connState, expectedState, newState)
google.golang.org/grpc/internal/channelz
funcs.go#L59: return atomic.CompareAndSwapInt32(&curState, 1, 1)
net/http
server.go#L767: if res != nil && atomic.CompareAndSwapInt32(&res.didCloseNotify, 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. |