func sync/atomic.CompareAndSwapInt32
7 uses
sync/atomic (current package)
doc.go#L94: func CompareAndSwapInt32(addr *int32, old, new int32) (swapped bool)
type.go#L84: return CompareAndSwapInt32(&x.v, old, new)
sync
mutex.go#L85: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L109: if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
mutex.go#L133: atomic.CompareAndSwapInt32(&m.state, old, old|mutexWoken) {
mutex.go#L164: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L247: if atomic.CompareAndSwapInt32(&m.state, old, new) {
 |
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. |