func sync/atomic.CompareAndSwapInt32
9 uses
sync/atomic (current package)
doc.go#L93: func CompareAndSwapInt32(addr *int32, old, new int32) (swapped bool)
type.go#L90: return CompareAndSwapInt32(&x.v, old, new)
github.com/gotd/td/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)
internal/sync
mutex.go#L63: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L85: if !atomic.CompareAndSwapInt32(&m.state, old, old|mutexLocked) {
mutex.go#L109: atomic.CompareAndSwapInt32(&m.state, old, old|mutexWoken) {
mutex.go#L140: if atomic.CompareAndSwapInt32(&m.state, old, new) {
mutex.go#L220: if atomic.CompareAndSwapInt32(&m.state, old, new) {
 |
The pages are generated with Golds v0.8.4. (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. |