func sync/atomic.CompareAndSwapInt32
9 uses
sync/atomic (current package)
doc.go#L92: func CompareAndSwapInt32(addr *int32, old, new int32) (swapped bool)
type.go#L84: return CompareAndSwapInt32(&x.v, old, new)
sync
mutex.go#L83: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L107: if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
mutex.go#L131: atomic.CompareAndSwapInt32(&m.state, old, old|mutexWoken) {
mutex.go#L162: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L245: if atomic.CompareAndSwapInt32(&m.state, old, new) {
github.com/gotd/td/internal/tdsync
ready.go#L29: if atomic.CompareAndSwapInt32(&r.done, 0, 1) {
go.uber.org/atomic
int32.go#L77: return atomic.CompareAndSwapInt32(&i.v, old, new)
|
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. |